:root {
    --primary: #1a56db;
    --primary-dark: #0f3b8c;
    --primary-light: #3b82f6;
    --accent: #06b6d4;
    --accent-gold: #f59e0b;
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --glass-bg: rgba(15, 59, 140, 0.88);
    --glass-border: rgba(255,255,255,.1);
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow: 0 4px 12px rgba(0,0,0,.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    padding-top: 60px;
    line-height: 1.6;
}

a {
    color: var(--primary);
    transition: color .2s;
}

a:hover {
    color: var(--primary-dark);
}

.btn {
    border-radius: var(--radius);
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    transition: all .2s;
}

.btn:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-sm {
    padding: 0.35rem 0.85rem;
    font-size: 0.875rem;
}

.form-control, .form-select {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
    transition: border-color .2s, box-shadow .2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}

/* ===== Hero ===== */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f3b8c 0%, #1a56db 50%, #2563eb 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,.06) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255,255,255,.04) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: .9;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions .btn {
    font-weight: 600;
    padding: 0.85rem 2.25rem;
    border-radius: 50px;
}

.hero-actions .btn-outline-light:hover {
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.8);
}

/* ===== Sections ===== */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin-top: 10px;
    border-radius: 2px;
}

.text-center .section-title::after {
    margin-left: auto;
    margin-right: auto;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ===== About ===== */
.about-section {
    background: var(--bg-card);
}

/* ===== Services ===== */
.services-section {
    background: var(--bg);
}

.service-card {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border);
    transition: transform .3s, box-shadow .3s, border-color .3s;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-icon {
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.service-card h4 {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== Features ===== */
.features-section {
    background: var(--bg-card);
}

.feature-item {
    padding: 2rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s, transform .3s;
}

.feature-item:hover {
    border-color: var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    display: block;
}

.feature-item h5 {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.4rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.search-result mark, mark {
    background: #fff3cd;
    color: #856404;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 600;
}

/* ===== Contact ===== */
.contact-section.bg-primary {
    background: linear-gradient(135deg, #0f3b8c 0%, #1a56db 100%) !important;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, .9);
}

.contact-form {
    border-radius: var(--radius-lg);
}

.contact-form h5 {
    color: var(--primary-dark);
}

/* ===== Inner Page Hero ===== */
.page-hero {
    background: linear-gradient(135deg, #0f3b8c, #1a56db);
    padding: 1.5rem 0;
}

.page-hero h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.page-hero p {
    font-size: 0.9rem;
    margin: 0;
    opacity: .85;
}

/* ===== News Content ===== */
.news-content {
    white-space: pre-line;
    line-height: 1.9;
    color: var(--text);
}

/* ===== Cards ===== */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.card-header {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
}

/* ===== Tables ===== */
.table {
    margin-bottom: 0;
}

.table > thead {
    border-bottom: 2px solid var(--border);
}

.table > thead > tr > th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-muted);
    border-bottom: none;
    padding: 0.75rem;
    background: #f8fafc;
}

.table > tbody > tr > td {
    padding: 0.75rem;
    vertical-align: middle;
    border-color: var(--border);
}

.table > tbody > tr:hover {
    background: #f8fafc;
}

.table-bordered > :not(caption) > * {
    border-color: var(--border);
}

/* ===== Nav Active ===== */
.navbar-nav .nav-link.active {
    color: #fff !important;
    font-weight: 600;
}

.navbar-nav .nav-link {
    position: relative;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: #64B5F6;
    border-radius: 1px;
}

/* ===== Breadcrumb ===== */
.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,.5);
}

/* ===== Compact listings ===== */
.compact-card .card-body {
    padding: 0.85rem 1rem;
}

.compact-card .card-title {
    font-size: 1.05rem;
}

.compact-card .card-text {
    font-size: 0.95rem;
    margin-top: 0.4rem !important;
}

/* ===== Links page ===== */
.link-card {
    transition: border-color .2s, box-shadow .2s;
    border: 1px solid transparent;
}

.link-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.link-desc {
    font-size: 0.85rem;
}

/* ===== Table cell truncate ===== */
.cell-truncate {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cell-break {
    max-width: 300px;
    word-break: break-all;
}

/* ===== Footer muted link ===== */
.footer-muted {
    text-decoration: none;
    opacity: .7;
    transition: opacity .2s;
}

.footer-muted:hover {
    opacity: 1;
    color: #fff;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ===== Pagination ===== */
.page-link {
    border-radius: var(--radius);
    color: var(--primary);
}

/* ===== Alerts ===== */
.alert {
    border-radius: var(--radius-lg);
    border: none;
}

/* ===== 验证码弹窗（全局共享样式） ===== */
/* 说明：验证码弹窗样式需要被 CaptchaModal 组件和 AdminLogin 页面共同使用，
   因此放在全局 CSS 中而非 scoped CSS 中，避免样式重复定义。 */
.captcha-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}

.captcha-modal {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,.2);
    max-width: 360px;
    width: 90%;
}

.captcha-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* ===== Float Contact ===== */
.float-contact {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.float-contact-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(26, 86, 219, .4);
    transition: transform .2s, box-shadow .2s;
    font-size: 1.4rem;
}

.float-contact-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(26, 86, 219, .5);
}

.float-contact-panel {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    min-width: 180px;
}

.float-contact.active .float-contact-panel {
    display: flex;
}

.float-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.65rem 1rem;
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    transition: background .2s;
}

.float-contact-item:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.float-contact-item + .float-contact-item {
    border-top: 1px solid var(--border);
}

/* ===== Responsive ===== */
/* ===== Workflow Steps ===== */
.step-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
}

/* ===== Stats ===== */
.stat-item {
    padding: 1.5rem 0;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* ===== Accordion ===== */
.accordion-button:not(.collapsed) {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-light);
}

/* ===== Timeline ===== */
.timeline .badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
}

/* ===== Case Content ===== */
.case-content h5 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text);
    font-weight: 600;
}

.case-content table {
    margin: 1rem 0;
}

.case-content table th {
    background: var(--primary-light);
    color: var(--primary);
}

.case-content ul, .case-content ol {
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.case-content li {
    margin-bottom: 0.25rem;
}

/* ===== Glass Navbar ===== */
.dropdown-menu {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    margin-top: 0.5rem !important;
    border: 1px solid var(--border);
}

.dropdown-item {
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: background .2s, transform .2s;
}

.dropdown-item:hover {
    background: #f0f4ff;
    transform: translateX(4px);
}

.dropdown-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-muted);
    padding: 0.5rem 1rem 0.25rem;
}

.dropdown-icon {
    display: inline-block;
    width: 1.2rem;
    text-align: center;
    opacity: .6;
}

/* ===== Hero Decorations ===== */
.hero-decoration {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    border: 2px solid rgba(255,255,255,.15);
}

.hero-decoration-1 {
    width: 320px;
    height: 320px;
    top: -100px;
    left: -80px;
}

.hero-decoration-2 {
    width: 220px;
    height: 220px;
    bottom: 5%;
    right: 3%;
    border-color: rgba(255,255,255,.08);
}

.hero-decoration-3 {
    width: 160px;
    height: 160px;
    top: 20%;
    right: 20%;
    border-style: dashed;
    opacity: .6;
    animation: heroFloat 8s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-decoration-4 {
    width: 80px;
    height: 80px;
    bottom: 30%;
    left: 8%;
    border: none;
    background: rgba(255,255,255,.04);
    animation: heroFloat 6s ease-in-out infinite reverse;
}

/* ===== Trust Bar ===== */
.trust-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,.12);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,.85);
    font-size: 0.85rem;
    font-weight: 500;
}

.trust-badge-icon {
    font-size: 1.15rem;
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    border: 1px solid var(--border);
    position: relative;
    transition: transform .35s, box-shadow .35s;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card::before {
    content: '\201C';
    font-size: 4rem;
    line-height: 1;
    color: var(--primary-light);
    opacity: .2;
    position: absolute;
    top: 0.25rem;
    left: 1.25rem;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-style: italic;
    color: var(--text);
    line-height: 1.85;
    font-size: 0.95rem;
    padding-top: 0.75rem;
}

.testimonial-author {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.testimonial-author strong {
    color: var(--primary-dark);
    font-size: 0.95rem;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.15rem;
}

/* ===== Client Cards ===== */
.client-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 0.75rem;
    text-align: center;
    background: var(--bg-card);
    transition: transform .3s, box-shadow .3s, border-color .3s;
    height: 100%;
}

.client-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.client-card h6 {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}

.client-card .badge {
    font-weight: 400;
    font-size: 0.7rem;
}

/* ===== Section Dot Pattern ===== */
.section-dots {
    position: relative;
}

.section-dots::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--primary-light) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: .04;
    pointer-events: none;
}

/* ===== Button Gradient Override ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    border: none;
    position: relative;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e40af 0%, var(--primary-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 86, 219, .35);
}

.btn-outline-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 86, 219, .2);
}

/* ===== Qualification Cards ===== */
.qual-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, #f0f4ff 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    transition: transform .3s, box-shadow .3s;
}

.qual-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.qual-card h5 {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.qual-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ===== Section Title Polish ===== */
.section-title {
    letter-spacing: -0.5px;
}

.section-desc {
    max-width: 640px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-actions .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .about-stats .col-4 {
        padding: 0 4px;
    }

    .page-hero h1 {
        font-size: 1.35rem;
    }
}

/* ===== Admin Layout ===== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body:has(.admin-wrapper) {
    padding-top: 0;
}

.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
}

.admin-sidebar::-webkit-scrollbar {
    width: 4px;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.sidebar-collapsed .admin-sidebar {
    width: 72px;
}

.admin-brand {
    font-size: 1.05rem;
    font-weight: 700;
    padding: 1.25rem 1.25rem 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    color: #f1f5f9;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.admin-brand .brand-icon {
    color: #60a5fa;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.admin-brand .brand-text {
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex: 1;
    min-width: 0;
}

.sidebar-collapsed .brand-text,
.sidebar-collapsed .nav-text,
.sidebar-collapsed .admin-user-info {
    display: none;
}

.sidebar-collapsed .admin-brand {
    justify-content: center;
    padding: 1.25rem 0.5rem;
}

.toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 0.75rem;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    padding: 0;
}

.toggle-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.admin-user {
    padding: 0.875rem 1.25rem;
    margin: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.admin-user:hover {
    background: rgba(255, 255, 255, 0.06);
}

.admin-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.admin-user-info {
    flex: 1;
    min-width: 0;
}

.admin-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-user-role {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 2px;
}

.sidebar-collapsed .admin-user {
    padding: 0.5rem;
    margin: 0.5rem;
    justify-content: center;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem 0.75rem;
    flex: 1;
    overflow-y: auto;
}

.admin-nav::-webkit-scrollbar {
    width: 4px;
}

.admin-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
}

.admin-nav-link {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    padding: 0.625rem 0.875rem;
    border-radius: 10px;
    font-size: 0.875rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    position: relative;
    border: 1px solid transparent;
    font-weight: 500;
}

button.admin-nav-link {
    background: transparent;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-family: inherit;
    color: rgba(255, 255, 255, 0.55);
}

.admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f1f5f9;
    transform: translateX(2px);
}

.admin-nav-link .nav-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.admin-nav-link.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.15));
    color: #fff;
    font-weight: 600;
    border-color: rgba(96, 165, 250, 0.2);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.admin-nav-link.active::before {
    content: '';
    position: absolute;
    left: -0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: linear-gradient(180deg, #60a5fa, #c084fc);
    border-radius: 0 3px 3px 0;
}

.admin-nav-link .nav-text {
    transition: opacity 0.2s;
}

.sidebar-collapsed .admin-nav-link {
    justify-content: center;
    padding: 0.625rem;
}

.sidebar-collapsed .admin-nav-link.active::before {
    display: none;
}

.admin-sidebar-footer {
    padding: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.admin-sidebar-footer .admin-nav-link {
    color: rgba(255, 255, 255, 0.4);
}

.admin-sidebar-footer .admin-nav-link:hover {
    color: #f87171;
    background: rgba(248, 113, 113, 0.08);
}

.sidebar-collapsed .admin-sidebar-footer .admin-nav-link {
    justify-content: center;
}

.admin-main {
    margin-left: 260px;
    flex: 1;
    padding: 1.5rem 2rem;
    background: #f1f5f9;
    min-height: 100vh;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-collapsed .admin-main {
    margin-left: 72px;
}

.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.admin-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.admin-page-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .admin-sidebar {
        width: 72px;
    }
    .admin-main {
        margin-left: 72px;
        padding: 1rem;
    }
    .sidebar-collapsed .admin-sidebar {
        width: 0;
    }
    .admin-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* ===== Admin Dashboard ===== */
.dashboard-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #6366f1 100%);
    color: #fff;
    padding: 1.75rem 2rem;
    margin: -1.5rem -2rem 1.5rem;
    border-radius: 0 0 16px 16px;
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.dashboard-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 1;
}

.dashboard-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--card-color, #3b82f6), var(--card-color-2, #8b5cf6));
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 8px 32px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.15);
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-card.card-blue {
    --card-color: #3b82f6;
    --card-color-2: #60a5fa;
}

.stat-card.card-purple {
    --card-color: #8b5cf6;
    --card-color-2: #a78bfa;
}

.stat-card.card-green {
    --card-color: #10b981;
    --card-color-2: #34d399;
}

.stat-card.card-orange {
    --card-color: #f59e0b;
    --card-color-2: #fbbf24;
}

.stat-card.card-red {
    --card-color: #ef4444;
    --card-color-2: #f87171;
}

.stat-card.card-cyan {
    --card-color: #06b6d4;
    --card-color-2: #22d3ee;
}

.stat-card-body {
    flex: 1;
    min-width: 0;
}

.stat-card-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card-number {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--card-color, #1e40af), var(--card-color-2, #3b82f6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-card-number.mono {
    font-variant-numeric: tabular-nums;
}

.stat-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--card-color, #3b82f6) 15%, transparent), color-mix(in srgb, var(--card-color-2, #60a5fa) 10%, transparent));
}

.stat-card.card-blue .stat-card-icon { background: linear-gradient(135deg, #dbeafe, #eff6ff); }
.stat-card.card-purple .stat-card-icon { background: linear-gradient(135deg, #ede9fe, #f5f3ff); }
.stat-card.card-green .stat-card-icon { background: linear-gradient(135deg, #d1fae5, #ecfdf5); }
.stat-card.card-orange .stat-card-icon { background: linear-gradient(135deg, #fef3c7, #fffbeb); }
.stat-card.card-red .stat-card-icon { background: linear-gradient(135deg, #fee2e2, #fef2f2); }
.stat-card.card-cyan .stat-card-icon { background: linear-gradient(135deg, #cffafe, #ecfeff); }

.dashboard-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.dashboard-actions .btn {
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dashboard-actions .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    color: #fff;
}

.dashboard-actions .btn-primary:hover {
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
    color: #fff;
}

.dashboard-actions .btn-outline-primary {
    border-width: 1.5px;
}

.page-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.25rem;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.quick-action-card {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.quick-action-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
    color: inherit;
}

.quick-action-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.quick-action-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge-success {
    background: #d1fae5;
    color: #059669;
}

.status-badge-error {
    background: #fee2e2;
    color: #dc2626;
}

.status-badge-warning {
    background: #fef3c7;
    color: #d97706;
}

.status-badge-info {
    background: #dbeafe;
    color: #2563eb;
}

@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-card-number {
        font-size: 1.5rem;
    }

    .stat-card-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
}
