/* Ticaret Destek Odası - Modern UI */

:root {
    --navy: #0c2340;
    --navy-light: #1a3a5c;
    --gold: #c9a227;
    --gold-light: #e8c547;
    --primary: #0c2340;
    --primary-dark: #081829;
    --primary-light: #1a3a5c;
    --accent: #c9a227;
    --bg: #f5f7fa;
    --surface: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.06);
    --radius: 12px;
    --radius-lg: 16px;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1140px, 92%);
    margin: 0 auto;
}

.site-header {
    background: var(--navy);
    color: white;
    padding: 0.85rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
}

.logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 50%;
    background: white;
    padding: 2px;
}

.logo-text {
    letter-spacing: 0.02em;
}

/* Landing Page */
.landing {
    padding: 2rem 0 3rem;
    min-height: calc(100vh - 140px);
}

.banner-wrap {
    display: block;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.banner-wrap:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 40px rgba(12, 35, 64, 0.15);
}

.banner-wrap:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
    user-select: none;
}

.cta-center {
    text-align: center;
    padding: 1rem 0 2.5rem;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.btn-cta-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.95rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    background: #25d366;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.btn-cta-whatsapp:hover {
    transform: translateY(-2px);
    background: #20bd5a;
    color: white;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.1rem 3.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(201, 162, 39, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    letter-spacing: 0.03em;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(201, 162, 39, 0.5);
    color: var(--navy);
}

.btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--navy);
    color: white;
    border-radius: 50%;
    font-size: 1.1rem;
}

.cta-note {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cta-faq-link {
    margin-top: 0.65rem;
    font-size: 0.88rem;
}

.cta-faq-link a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(12, 35, 64, 0.2);
    transition: color 0.2s, border-color 0.2s;
}

.cta-faq-link a:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.partners {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 1.5rem 0;
    opacity: 0.85;
}

.partner-link {
    display: inline-block;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.partner-link:hover {
    transform: scale(1.05);
    opacity: 1;
}

.partner-logo {
    height: 56px;
    width: auto;
    object-fit: contain;
    filter: grayscale(20%);
    pointer-events: none;
    user-select: none;
}

.form-section {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.4s ease, padding 0.4s ease;
    padding: 0;
    scroll-margin-top: 80px;
}

.form-section.is-open {
    max-height: 5000px;
    opacity: 1;
    padding: 2rem 0 4rem;
}

.form-alert {
    padding: 0 2rem;
    padding-top: 1.25rem;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    max-width: 640px;
    margin: 2rem auto 0;
}

.info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.info-card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.85rem;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--navy);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.info-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--navy);
}

.info-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* FAQ Section */
.faq-section {
    padding: 3.5rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    border-top: 1px solid rgba(12, 35, 64, 0.06);
    border-bottom: 1px solid rgba(12, 35, 64, 0.06);
}

.faq-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 2.5rem;
}

.faq-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--navy);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.faq-header h2 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    color: var(--navy);
    margin-bottom: 0.85rem;
}

.faq-intro {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.faq-trust-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.faq-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    padding: 1.15rem 1rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid rgba(12, 35, 64, 0.06);
}

.faq-trust-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.faq-trust-item strong {
    color: var(--navy);
    font-size: 0.92rem;
}

.faq-trust-item span:last-child {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.faq-list {
    max-width: 820px;
    margin: 0 auto 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(12, 35, 64, 0.08);
    box-shadow: 0 2px 8px rgba(12, 35, 64, 0.04);
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.faq-item[open] {
    border-color: rgba(201, 162, 39, 0.45);
    box-shadow: 0 8px 24px rgba(12, 35, 64, 0.08);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.15rem 1.35rem;
    padding-right: 3rem;
    font-weight: 700;
    color: var(--navy);
    font-size: 1rem;
    line-height: 1.45;
    position: relative;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: var(--navy);
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 400;
    transition: background 0.2s, transform 0.2s;
}

.faq-item[open] summary::after {
    content: '−';
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.faq-item summary:hover::after {
    background: #e2e8f0;
}

.faq-item[open] summary:hover::after {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.faq-answer {
    padding: 0 1.35rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    border-top: 1px solid rgba(12, 35, 64, 0.06);
}

.faq-answer p {
    margin-top: 1rem;
    font-weight: 400;
}

.faq-answer p:first-child {
    margin-top: 0.85rem;
}

.faq-answer ul,
.faq-answer ol {
    margin: 0.75rem 0 0 1.25rem;
}

.faq-answer li {
    margin-bottom: 0.4rem;
}

.faq-answer strong {
    color: var(--navy);
}

.faq-cta {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1.75rem 2rem;
    background: linear-gradient(135deg, var(--navy), var(--primary-dark));
    border-radius: var(--radius-lg);
    color: white;
    box-shadow: var(--shadow-lg);
}

.faq-cta-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.45rem;
    color: white;
}

.faq-cta-content p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    line-height: 1.55;
    font-weight: 400;
    max-width: 480px;
}

.faq-cta .btn-cta {
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .faq-section {
        padding: 2.5rem 0;
    }

    .faq-cta {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 1.5rem;
    }

    .faq-cta .btn-cta {
        width: 100%;
        justify-content: center;
    }

    .faq-item summary {
        font-size: 0.95rem;
        padding: 1rem 1rem;
        padding-right: 3rem;
    }

    .faq-answer {
        padding: 0 1rem 1rem;
    }
}

.form-wrapper {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    max-width: 640px;
    margin: 0 auto;
}

.form-header {
    background: var(--navy);
    color: white;
    padding: 1.75rem 2rem;
    text-align: center;
}

.form-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
}

.form-header p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.application-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .btn-cta {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        width: 100%;
        max-width: 320px;
    }

    .partners {
        gap: 2rem;
    }

    .partner-logo {
        height: 44px;
    }

    .logo-text {
        font-size: 0.9rem;
    }
}

label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--text);
}

label .required {
    color: var(--danger);
}

label .optional {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85em;
}

input[type="text"],
input[type="tel"],
input[type="password"],
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--surface);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-box {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    background: var(--bg);
    transition: border-color 0.2s, background 0.2s;
}

.file-upload:hover .file-upload-box,
.file-upload:focus-within .file-upload-box {
    border-color: var(--primary);
    background: rgba(15, 118, 110, 0.04);
}

.file-upload-icon {
    font-size: 1.75rem;
    margin-bottom: 0.35rem;
}

.file-upload-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.file-name {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    text-decoration: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--navy-light), var(--navy));
    color: white;
    box-shadow: 0 4px 14px rgba(12, 35, 64, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(15, 118, 110, 0.45);
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    width: 100%;
    font-size: 1.05rem;
    padding: 1rem;
}

.btn-whatsapp:hover {
    background: #20bd5a;
    color: white;
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-sm {
    padding: 0.45rem 0.85rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-info {
    background: #e0f2fe;
    color: #075985;
    border: 1px solid #bae6fd;
}

.success-box {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 480px;
    margin: 3rem auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
    width: 100%;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2.5rem;
    margin: 0 auto 0.5rem;
    color: white;
    flex-shrink: 0;
}

.success-box h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.success-box > p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.success-whatsapp {
    width: 100%;
    margin: 0.75rem 0;
    padding: 1.25rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius);
}

.success-whatsapp-text {
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.success-box .btn-secondary {
    margin-top: 0.25rem;
}

.whatsapp-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 2rem 0 1.5rem;
    font-size: 0.85rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    text-align: center;
}

.footer-brand {
    font-weight: 700;
    color: white;
    font-size: 1rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--gold-light);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--gold-light);
}

.footer-copy {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

/* Legal Pages */
.legal-page {
    padding: 2.5rem 0 3.5rem;
    min-height: calc(100vh - 200px);
}

.legal-content {
    max-width: 760px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 2rem 2.25rem;
}

.legal-content h1 {
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.legal-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.legal-content h2 {
    font-size: 1.1rem;
    color: var(--navy);
    margin: 1.75rem 0 0.75rem;
}

.legal-content p,
.legal-content li {
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 0.95rem;
}

.legal-content ul {
    margin: 0.75rem 0 0.75rem 1.35rem;
}

.legal-content li {
    margin-bottom: 0.4rem;
}

.legal-content a {
    color: var(--primary);
    font-weight: 600;
}

.legal-content a:hover {
    color: var(--gold);
}

.legal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.form-consent {
    margin-top: 0.25rem;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-muted);
    font-weight: 400;
}

.consent-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 0.15rem;
    flex-shrink: 0;
    accent-color: var(--navy);
    cursor: pointer;
}

.consent-label a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.consent-label a:hover {
    color: var(--gold);
}

@media (max-width: 640px) {
    .legal-content {
        padding: 1.5rem 1.25rem;
    }

    .legal-actions {
        flex-direction: column;
    }

    .legal-actions .btn {
        width: 100%;
        text-align: center;
    }
}

.admin-body {
    background: #f1f5f9;
}

.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

@media (max-width: 900px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static !important;
    }
}

.admin-sidebar {
    background: linear-gradient(180deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 1.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-brand {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.admin-live-stats {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 0.85rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 0.82rem;
}

.admin-live-stat {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.9);
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
    animation: live-pulse 2s infinite;
}

@keyframes live-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

.live-updated {
    animation: live-flash 0.6s ease;
}

@keyframes live-flash {
    0% { background-color: rgba(74, 222, 128, 0.18); }
    100% { background-color: transparent; }
}

.admin-card-value.live-updated {
    animation: live-value-flash 0.6s ease;
}

@keyframes live-value-flash {
    0% { color: #16a34a; transform: scale(1.08); }
    100% { color: var(--primary); transform: scale(1); }
}

.admin-card-online .admin-card-value.live-updated {
    animation-name: live-value-flash-online;
}

@keyframes live-value-flash-online {
    0% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.admin-nav {
    list-style: none;
}

.admin-nav li {
    margin-bottom: 0.35rem;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.2s;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.admin-main {
    padding: 2rem;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header h1 {
    font-size: 1.5rem;
}

.admin-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.admin-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.admin-card-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.admin-card-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.admin-card-online .admin-card-value {
    color: #16a34a;
}

.admin-table-wrap {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    background: var(--bg);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: rgba(15, 118, 110, 0.03);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    padding: 1rem;
}

.login-card {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: min(420px, 100%);
}

.login-card h1 {
    text-align: center;
    margin-bottom: 0.35rem;
    font-size: 1.5rem;
}

.login-card .subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.detail-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.detail-card h3 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

.detail-card p {
    font-size: 1.05rem;
    font-weight: 600;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.document-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.document-card-header {
    padding: 1rem 1rem 0.75rem;
}

.document-card-header h4 {
    font-size: 0.95rem;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.document-filename {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    word-break: break-all;
}

.document-preview-link {
    display: block;
    line-height: 0;
}

.document-preview {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.document-pdf {
    width: 100%;
    height: 320px;
    border: none;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.document-file-icon {
    font-size: 3rem;
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.document-missing {
    padding: 1.25rem;
    background: #fef2f2;
    color: #991b1b;
    font-size: 0.875rem;
    border-top: 1px solid #fecaca;
    border-bottom: 1px solid #fecaca;
}

.document-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
}

.file-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.file-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    color: var(--text);
    transition: border-color 0.2s;
}

.file-link:hover {
    border-color: var(--primary);
}

.actions-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}
