* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: #1a1a1a;
    color: #e0e0e0;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: #2a2a2a;
    border: 1px solid #444;
    overflow: hidden;
}

.header {
    background: #333;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #444;
}

.header h1 {
    color: #e0e0e0;
    font-size: 2em;
    margin-bottom: 10px;
    font-weight: normal;
}

.header .subtitle {
    color: #999;
    font-size: 1em;
}

.content {
    padding: 30px;
}

.file-info {
    background: #333;
    border: 1px solid #444;
    padding: 20px;
    margin-bottom: 30px;
}

.file-info h2 {
    color: #e0e0e0;
    margin-bottom: 15px;
    font-size: 1.5em;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.info-item {
    background: #2a2a2a;
    padding: 15px;
    border: 1px solid #444;
}

.info-label {
    color: #999;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.info-value {
    color: #e0e0e0;
    font-size: 1em;
}

.download-log {
    background: #333;
    border: 1px solid #444;
    padding: 20px;
    margin-bottom: 30px;
}

.download-log h2 {
    color: #e0e0e0;
    margin-bottom: 15px;
    font-size: 1.5em;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Courier New', monospace;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #444;
}

th {
    background: #2a2a2a;
    color: #e0e0e0;
    font-weight: bold;
}

td {
    color: #ccc;
}

.back-link {
    text-align: center;
    margin-top: 30px;
}

.back-link a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1em;
    padding: 10px 20px;
    border: 1px solid #444;
    background: #333;
    transition: all 0.3s ease;
}

.back-link a:hover {
    background: #444;
}

.no-data {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Upload page styles */
.upload-area {
    border: 3px dashed #444;
    border-radius: 8px;
    padding: 60px 20px;
    margin: 30px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #333;
}

.upload-area:hover {
    border-color: #666;
    background: #3a3a3a;
    transform: scale(1.02);
}

.upload-area.dragover {
    border-color: #666;
    background: #3a3a3a;
    transform: scale(1.05);
}

.upload-icon {
    font-size: 4em;
    color: #666;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.upload-text {
    color: #e0e0e0;
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: 500;
}

.upload-subtext {
    color: #999;
    font-size: 1em;
}

#fileInput {
    display: none;
}

.btn {
    background: #444;
    color: #e0e0e0;
    border: 2px solid #555;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    background: #555;
}

.btn.secondary {
    background: #333;
    border-color: #444;
    color: #999;
}

.btn.secondary:hover {
    background: #444;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.result {
    margin-top: 30px;
    padding: 25px;
    background: #333;
    border-radius: 8px;
    border-left: 4px solid #444;
    display: none;
    text-align: left;
}

.result.success {
    border-left-color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.result.error {
    border-left-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.short-url {
    font-family: 'Courier New', monospace;
    background: #2a2a2a;
    padding: 20px;
    border-radius: 6px;
    margin: 15px 0;
    word-break: break-all;
    border: 1px solid #444;
}

.copy-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    margin-left: 10px;
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.copy-btn:hover {
    background: #229954;
    transform: translateY(-1px);
}

.warning-message {
    background: #8B4513;
    color: #FFD700;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    font-weight: bold;
    text-align: center;
    border: 1px solid #DAA520;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.file-info {
    text-align: left;
    margin: 15px 0;
    padding: 20px;
    background: #2a2a2a;
    border-radius: 6px;
    border: 1px solid #444;
}

.file-info h3 {
    color: #e0e0e0;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.file-info p {
    margin: 8px 0;
    color: #e0e0e0;
}

.supported-formats {
    margin-top: 30px;
    padding: 25px;
    background: #2a2a2a;
    border-radius: 8px;
    text-align: left;
    border: 1px solid #444;
}

.supported-formats h3 {
    color: #e0e0e0;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.3em;
}

.format-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.format-item {
    padding: 12px 15px;
    background: #333;
    border-radius: 6px;
    border: 1px solid #444;
    font-size: 0.95em;
    color: #e0e0e0;
}

.security-notice {
    margin-top: 25px;
    padding: 20px;
    background: rgba(241, 196, 15, 0.1);
    border: 1px solid #f1c40f;
    border-radius: 6px;
    color: #f1c40f;
    font-size: 0.95em;
}

.loading {
    display: none;
    margin: 20px 0;
}

.spinner {
    border: 3px solid rgba(68, 68, 68, 0.3);
    border-top: 3px solid #444;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    color: #e74c3c;
    font-weight: bold;
}

.success-message {
    color: #27ae60;
    font-weight: bold;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.stats-link {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #999;
    text-decoration: none;
    font-size: 1.1em;
    padding: 10px 15px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #333;
    transition: all 0.3s ease;
}

.stats-link:hover {
    background: #444;
    color: #e0e0e0;
}

/* Homepage animation styles */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.homepage-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 50px 20px;
    color: #00ff00;
    font-family: 'Courier New', monospace;
}

.homepage-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #00ff00;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 30px #00ff00; }
    to { text-shadow: 0 0 20px #00ff00, 0 0 30px #00ff00, 0 0 40px #00ff00; }
}

.homepage-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.8;
}

.homepage-content a {
    color: #00ff00;
    text-decoration: none;
    font-size: 1.5em;
    padding: 15px 30px;
    border: 2px solid #00ff00;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 10px;
}

.homepage-content a:hover {
    background: #00ff00;
    color: #000;
    box-shadow: 0 0 20px #00ff00;
}

@media (max-width: 768px) {
    .info-grid, .format-list {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .homepage-content h1 {
        font-size: 2em;
    }
}
