/* Reset y variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --bg-light: #f8fafc;
    --transition: 0.3s ease;
}

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

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--text-primary);
    line-height: 1.6;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.site-header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 18px;
}

.brand-mark {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
}

.brand-text {
    font-weight: 700;
}

.brand-subtle {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.brand-subtle:hover {
    color: var(--primary);
}

/* Main container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px;
    flex: 1;
    width: 100%;
}

/* Hero section */
.hero {
    text-align: center;
    margin-bottom: 80px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Upload section */
.upload-section {
    margin-bottom: 80px;
}

.upload-card {
    background: white;
    border-radius: 16px;
    padding: 50px 40px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
    transition: padding 0.3s ease;
}

.upload-card.collapsed {
    padding: 16px 20px;
}

.upload-card-header {
    text-align: center;
    margin-bottom: 40px;
}

.upload-card-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.upload-card-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

.upload-card-header strong {
    color: var(--primary);
    font-weight: 600;
}

#uploadForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.file-input-wrapper {
    position: relative;
}

input[type="file"] {
    display: none;
}

.file-label {
    display: block;
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-label:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.02);
}

.file-label-title {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-size: 15px;
}

.file-label-subtitle {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
}

.submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.file-selected {
    display: none;
    background: #d1fae5;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #065f46;
    align-items: center;
    gap: 10px;
}

.file-selected.show {
    display: flex;
}

.uploaded-files-section {
    margin-bottom: 60px;
}

.uploaded-files-grid {
    display: grid;
    gap: 16px;
}

.file-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.file-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 16px;
}

.file-card-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.file-card-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

.file-card-status.success {
    background: #d1fae5;
    color: #065f46;
}

.file-card-status.error {
    background: #fee2e2;
    color: #991b1b;
}

.file-card-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    font-size: 13px;
}

.file-detail {
    display: flex;
    flex-direction: column;
}

.file-detail-label {
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 2px;
}

.file-detail-value {
    color: var(--text-primary);
    font-weight: 600;
}

.privacy-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 20px;
}

/* Result section */
.result-section {
    margin-bottom: 60px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.card h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 32px 0 16px 0;
    color: var(--text-primary);
}

.card h2:first-child {
    margin-top: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

td:first-child {
    font-weight: 600;
    color: var(--text-primary);
    width: 35%;
}

td:last-child {
    color: var(--text-secondary);
}

.card ul {
    margin: 16px 0 0 0;
    padding-left: 20px;
}

.card li {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #dc2626;
}

.error h3 {
    margin: 0 0 8px 0;
    font-size: 15px;
}

.error p {
    margin: 0;
}

/* Features section */
.features {
    margin-top: 80px;
}

.section-heading {
    text-align: center;
    margin-bottom: 40px;
}

.section-heading h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.section-heading p {
    color: var(--text-secondary);
    font-size: 16px;
}

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

.feature-item {
    padding: 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.feature-item h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
.privacy-footer {
    background: var(--text-primary);
    color: #cbd5e1;
    padding: 40px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.privacy-content {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-brand {
    text-align: center;
    margin-bottom: 24px;
}

.footer-brand span {
    display: block;
    font-weight: 600;
    font-size: 16px;
    color: white;
    margin-bottom: 4px;
}

.footer-brand small {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.footer-brand small a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-brand small a:hover {
    color: #60a5fa;
}

.privacy-footer p {
    text-align: center;
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
}

.privacy-footer a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.privacy-footer a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .upload-card {
        padding: 30px 20px;
    }

    .file-label {
        padding: 25px;
    }

    .submit-btn {
        padding: 12px 24px;
    }

    .card {
        padding: 20px;
    }

    .card h2 {
        font-size: 18px;
    }

    .section-heading h3 {
        font-size: 24px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        flex-direction: column;
        gap: 12px;
    }

    .footer-brand {
        margin-bottom: 16px;
    }

    .privacy-footer p {
        font-size: 12px;
    }
}
