:root {
    --gold: #D4AF37;
    --gold-dark: #B8860B;
    --navy: #2C3E50;
    --white: #FFFFFF;
    --bg-light: #F4F7F6;
    --text-muted: #7F8C8D;
    --shadow: 0 15px 35px rgba(0,0,0,0.1);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--navy);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 700px;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: -1px;
    margin: 0;
}

header h1 span {
    color: var(--gold);
    font-weight: 800;
}

header p {
    color: var(--text-muted);
    margin-top: 5px;
}

.card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border-top: 6px solid var(--gold);
}

.upload-area {
    border: 2px dashed #DCDDE1;
    border-radius: 15px;
    padding: 50px 20px;
    text-align: center;
    transition: 0.3s;
}

.upload-area:hover {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.03);
}

.icon { font-size: 50px; margin-bottom: 15px; }

.btn-secondary {
    background: #f1f2f6;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    color: var(--navy);
    margin-top: 15px;
}

.btn-primary {
    background: var(--navy);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 10px;
    width: 100%;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.2);
}

.btn-primary:hover {
    background: #1a252f;
    transform: translateY(-2px);
}

#file-info {
    margin-top: 30px;
}

.file-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.file-meta strong { display: block; color: var(--navy); }
.file-meta p { margin: 0; font-size: 12px; color: var(--text-muted); }

#status-badge {
    background: #E3F2FD;
    color: #1976D2;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Loading CSS */
.loading-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

.spinner {
    width: 60px; height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.hidden { display: none !important; }