/* Professional Design System (Version 2.0) - "Vue-Professional" Style */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* 🎨 Professional Color Palette (Cool Grays & Royal Blue) */
    --primary: #3B82F6;
    /* Royal Blue */
    --primary-hover: #2563EB;
    --primary-light: #EFF6FF;
    /* Blue 50 */

    --success: #10B981;
    --success-light: #ECFDF5;

    --danger: #EF4444;
    --warning: #F59E0B;

    /* Light Backgrounds for Badges/States */
    --bg-primary-light: #EFF6FF;
    --bg-success-light: #ECFDF5;
    --bg-warning-light: #FFFBEB;
    --bg-danger-light: #FEF2F2;

    /* Neutral Scales (The Secret to "Clean" Design) */
    --bg-body: #F3F4F6;
    /* Gray 100 - Not White */
    --bg-surface: #FFFFFF;

    --text-main: #111827;
    /* Gray 900 */
    --text-body: #4B5563;
    /* Gray 600 */
    --text-muted: #9CA3AF;
    /* Gray 400 */

    --border-color: #E5E7EB;
    /* Gray 200 */

    /* 📐 Dimensions & Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --input-height: 48px;
    --bottom-nav-height: 70px;

    /* ☁️ Layered Shadows (Elevation System) */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* App Header */
    --bg-header: rgba(255, 255, 255, 0.95);
    --bg-surface-secondary: #f8fafc;
}

/* 🌙 Dark Mode Theme */
[data-theme="dark"] {
    --bg-body: #111827;
    /* Very dark gray/black */
    --bg-surface: #1F2937;
    /* Dark gray surface */

    --text-main: #F9FAFB;
    /* Almost white */
    --text-body: #D1D5DB;
    /* Light gray */
    --text-muted: #9CA3AF;
    /* Muted gray */

    --border-color: #374151;
    /* Dark border */

    --primary-light: #1E3A8A;
    /* Darker blue background for active states */

    /* Dark Context Backgrounds (Subtle tints) */
    --bg-primary-light: rgba(59, 130, 246, 0.1);
    --bg-success-light: rgba(16, 185, 129, 0.1);
    --bg-warning-light: rgba(245, 158, 11, 0.1);
    --bg-danger-light: rgba(239, 68, 68, 0.1);

    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);

    /* App Header - dark */
    --bg-header: rgba(17, 24, 39, 0.98);
    --bg-surface-secondary: #1a2332;

    /* Dark Gradients (Subtle & Professional) */
    .gradient-blue {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.2));
        color: #60a5fa;
    }

    .gradient-green {
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
        color: #34d399;
    }

    .gradient-purple {
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.2));
        color: #a78bfa;
    }

    .gradient-orange {
        background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.2));
        color: #fbbf24;
    }

    .gradient-red {
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.2));
        color: #f87171;
    }

    .gradient-slate {
        background: linear-gradient(135deg, rgba(100, 116, 139, 0.2), rgba(71, 85, 105, 0.2));
        color: #94a3b8;
    }

    .gradient-teal {
        background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(13, 148, 136, 0.2));
        color: #2dd4bf;
    }

    /* ========================================
       BOOTSTRAP COMPONENT OVERRIDES
    ======================================== */

    /* Modal */
    .modal-content {
        background-color: var(--bg-surface) !important;
        border-color: var(--border-color) !important;
        color: var(--text-body) !important;
    }

    .modal-header {
        background: var(--bg-surface) !important;
        border-bottom-color: var(--border-color) !important;
    }

    .modal-body {
        background: var(--bg-body) !important;
        color: var(--text-body) !important;
    }

    .modal-footer {
        background: var(--bg-surface) !important;
        border-top-color: var(--border-color) !important;
    }

    .modal-title {
        color: var(--text-main) !important;
    }

    /* Bootstrap Table */
    .table {
        color: var(--text-body) !important;
        border-color: var(--border-color) !important;
    }

    .table thead th,
    .table>thead>tr>th {
        background-color: var(--bg-body) !important;
        color: var(--text-muted) !important;
        border-bottom-color: var(--border-color) !important;
    }

    .table tbody td,
    .table>tbody>tr>td {
        color: var(--text-body) !important;
        border-bottom-color: var(--border-color) !important;
    }

    .table-hover>tbody>tr:hover>td,
    .table-hover>tbody>tr:hover>th {
        background-color: rgba(255, 255, 255, 0.04) !important;
        color: var(--text-main) !important;
    }

    .table-striped>tbody>tr:nth-of-type(odd)>td {
        background-color: rgba(255, 255, 255, 0.02) !important;
    }

    /* Bootstrap Badges */
    .badge.bg-light,
    .badge.text-dark {
        background-color: rgba(255, 255, 255, 0.1) !important;
        color: var(--text-body) !important;
        border-color: var(--border-color) !important;
    }

    .bg-light {
        background-color: var(--bg-body) !important;
    }

    /* Bootstrap Buttons */
    .btn-light,
    .btn-group .btn-light,
    .btn-group .btn.active,
    .btn-group .btn.btn-light.active {
        background-color: var(--bg-body) !important;
        border-color: var(--border-color) !important;
        color: var(--text-body) !important;
    }

    .btn-outline-primary {
        border-color: var(--primary);
        color: var(--primary);
    }

    /* btn-close in dark mode — replace dark SVG with white X version */
    .btn-close {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") !important;
        opacity: 0.7;
    }

    .btn-close:hover {
        opacity: 1;
    }

    /* ========================================
       MOBILE BOTTOM NAV - DARK
    ======================================== */
    .mobile-bottom-nav {
        background: rgba(17, 24, 39, 0.98) !important;
        border-top-color: var(--border-color) !important;
    }

    .mobile-nav-item {
        color: #64748b !important;
    }

    .mobile-nav-item.active {
        color: var(--primary) !important;
        background: rgba(59, 130, 246, 0.12) !important;
    }

    /* ========================================
       TRIAJ / GLASS CARD COMPONENTS
    ======================================== */
    .glass-table-card,
    .list-header {
        background: var(--bg-surface) !important;
        border-color: var(--border-color) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .table-header {
        background: rgba(255, 255, 255, 0.03) !important;
        border-bottom-color: var(--border-color) !important;
    }

    .table-header-title {
        color: var(--text-main) !important;
    }

    .modern-table th {
        background: var(--bg-body) !important;
        color: var(--text-muted) !important;
        border-bottom-color: var(--border-color) !important;
    }

    .modern-table td {
        color: var(--text-body) !important;
        border-bottom-color: var(--border-color) !important;
    }

    .modern-table tr:hover td {
        background: rgba(255, 255, 255, 0.04) !important;
    }

    .btn-action {
        background: var(--bg-body) !important;
        color: var(--text-muted) !important;
        border-color: var(--border-color) !important;
    }

    /* ========================================
       STATUS PILLS (Triaj) - DARK
    ======================================== */
    .status-pill.pill-red,
    .pill-red {
        background: rgba(239, 68, 68, 0.15) !important;
        color: #f87171 !important;
        border-color: rgba(239, 68, 68, 0.3) !important;
    }

    .status-pill.pill-yellow,
    .pill-yellow {
        background: rgba(245, 158, 11, 0.15) !important;
        color: #fbbf24 !important;
        border-color: rgba(245, 158, 11, 0.3) !important;
    }

    .status-pill.pill-green,
    .pill-green {
        background: rgba(16, 185, 129, 0.15) !important;
        color: #34d399 !important;
        border-color: rgba(16, 185, 129, 0.3) !important;
    }

    .status-pill.pill-gray,
    .pill-gray {
        background: rgba(100, 116, 139, 0.15) !important;
        color: #94a3b8 !important;
        border-color: rgba(100, 116, 139, 0.3) !important;
    }

    /* ========================================
       DARK MODE COMPONENT OVERRIDES
    ======================================== */
    .modern-card,
    .glass-card {
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    }

    .modern-input,
    .form-control,
    .form-select {
        background-color: var(--bg-surface);
        border-color: var(--border-color);
        color: var(--text-main);
    }

    .modern-input::placeholder {
        color: var(--text-muted);
        opacity: 0.7;
    }

    /* Ensure icons in dark mode are visible */
    .input-icon {
        color: var(--text-muted);
    }

    /* Dark Mode Hover States */
    .module-card:hover {
        background-color: rgba(255, 255, 255, 0.03);
        border-color: rgba(255, 255, 255, 0.15);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    }

    /* Card details (expandable sections in dr_hasta_listesi) */
    .card-details {
        background: var(--bg-body) !important;
    }

    /* Info boxes inside cards */
    .info-box,
    [style*="background: white"],
    [style*="background:#fff"],
    [style*="background: #fff"] {
        background-color: var(--bg-surface) !important;
    }

    /* Icon circles */
    .icon-circle.blue {
        background: rgba(37, 99, 235, 0.15);
        color: #60a5fa;
    }

    .icon-circle.green {
        background: rgba(5, 150, 105, 0.15);
        color: #34d399;
    }

    .icon-circle.purple {
        background: rgba(124, 58, 237, 0.15);
        color: #a78bfa;
    }

    .icon-circle.orange {
        background: rgba(234, 88, 12, 0.15);
        color: #fb923c;
    }
}

/* === Global Reset & Typography === */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-body);
    color: var(--text-body);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    padding-bottom: 30px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    font-weight: 600;
    margin-top: 0;
    letter-spacing: -0.025em;
    /* Tight tracking for modern look */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

/* === Layout Containers === */
.app-container {
    max-width: 100%;
    /* Mobile first */
    margin: 0 auto;
    padding: 16px;
    /* Reduced mobile padding */
    min-height: 100vh;
}

@media (min-width: 768px) {
    .app-container {
        padding: 24px;
        /* More padding on desktop */
        max-width: 1000px;
        /* Balanced desktop width */
        background-color: var(--bg-body);
        min-height: 100vh;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
        margin: 20px auto;
        border-radius: var(--radius-lg);
    }

    body {
        background-color: #E5E7EB;
        /* Darker bg outside app context on desktop */
        display: block;
        /* Restore block display */
    }
}

/* === Modal Back Button (Geri Butonu) === */
.modal-back-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    opacity: 0.75;
    color: var(--text-main);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, opacity 0.2s;
}

.modal-back-btn:hover {
    opacity: 1;
    background: var(--bg-body);
}

/* === Professional Cards === */

.modern-card,
.glass-card {
    /* Unified "Card" class */
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    /* Extremely subtle border */
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.modern-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Card Header Area */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

/* === Professional Inputs === */
.modern-input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.modern-input {
    width: 100%;
    height: var(--input-height);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0 16px;
    /* Comfortable padding */
    padding-left: 48px;
    /* Space for icon */
    font-size: 15px;
    color: var(--text-main);
    transition: all 0.2s ease;
    outline: none;
    box-shadow: var(--shadow-xs);
}

.modern-input::placeholder {
    color: var(--text-muted);
}

.modern-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    /* Professional Ring Focus */
}

/* Input Icons */
.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 18px;
    transition: color 0.2s;
    pointer-events: none;
}

.modern-input:focus+.input-icon,
.modern-input-group:focus-within .input-icon {
    color: var(--primary);
}

/* Labels */
.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-body);
    margin-bottom: 0.5rem;
    margin-left: 4px;
}

/* === Professional Buttons === */
.btn-modern {
    height: 48px;
    /* Taller, touch friendly */
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Primary Action */
.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    /* Colored shadow */
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 6px 8px -1px rgba(59, 130, 246, 0.4);
}

/* Ripple/Shine Effect (Replaces .btn-animate) */
.btn-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.2s;
}

.btn-modern:active::after {
    opacity: 1;
}

/* === Choice/Option Grid (Login & Modules) === */
.login-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.login-option {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    /* Critical for clickable forms */
}

/* Selection State */
.login-option.active,
.module-card.active {
    border-color: var(--primary);
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 0 0 1px var(--primary);
    /* Integrated border look */
}

.login-option:hover {
    border-color: var(--primary);
}

/* === Bottom Navigation (App-Like) === */


.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    gap: 4px;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.2s;
    width: 64px;
}

.nav-item i {
    font-size: 20px;
    transition: transform 0.2s;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active i {
    transform: translateY(-2px);
}

/* === Icon Circles (Dashboard) === */
.icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    /* Squircle */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
    transition: transform 0.2s;
}

.icon-circle.blue {
    background: #DBEAFE;
    color: #2563EB;
}

.icon-circle.green {
    background: #D1FAE5;
    color: #059669;
}

.icon-circle.purple {
    background: #EDE9FE;
    color: #7C3AED;
}

.icon-circle.orange {
    background: #FFEDD5;
    color: #EA580C;
}

/* === Utility Classes === */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.d-none {
    display: none;
}


/* === Bootstrap Compatibility Overrides === */
.form-control,
.form-select {
    display: block;
    width: 100%;
    height: var(--input-height);
    background-color: var(--bg-surface);
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0 16px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-main);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    outline: 0;
}

.alert {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* === Responsive Table Styles === */
@media (max-width: 768px) {
    .mobile-table thead {
        display: none;
    }

    .mobile-table tr {
        display: block;
        margin-bottom: 16px;
        background: var(--bg-surface);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        padding: 16px;
        box-shadow: var(--shadow-sm);
    }

    .mobile-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0 !important;
        border-bottom: 1px solid var(--border-color);
        text-align: right;
    }

    .mobile-table td:last-child {
        border-bottom: none;
    }

    .mobile-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        font-size: 13px;
        text-transform: uppercase;
        margin-right: 16px;
        text-align: left;
    }
}


/* === New Chic Design System Additions === */

/* Modern Dashboard Grid - Balanced Mode */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 30px;
}

.welcome-header {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Grid System - Responsive Default */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

/* 2-Column Override Class */
.module-grid.grid-2-col {
    grid-template-columns: repeat(2, 1fr);
}

/* Unified Card Style - Chic Version */
.module-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    height: 100%;
    min-height: 110px;
    cursor: pointer;
    text-align: left;
    /* Override previous center alignment */
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-light);
}

.module-card.active {
    background-color: var(--primary-light);
    border-color: var(--primary);
}

.module-card .icon-box {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.module-card:hover .icon-box {
    transform: scale(1.1) rotate(-5deg);
}

/* Gradients */
.gradient-blue {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    color: #0284c7;
}

.gradient-green {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #16a34a;
}

.gradient-purple {
    background: linear-gradient(135deg, #f3e8ff, #d8b4fe);
    color: #9333ea;
}

.gradient-orange {
    background: linear-gradient(135deg, #ffedd5, #fed7aa);
    color: #ea580c;
}

.gradient-red {
    background: linear-gradient(135deg, #fee2e2, #fca5a5);
    color: #dc2626;
}

.gradient-slate {
    background: linear-gradient(135deg, #f1f5f9, #cbd5e1);
    color: #475569;
}

.gradient-teal {
    background: linear-gradient(135deg, #ccfbf1, #99f6e4);
    color: #0d9488;
}

.card-content {
    flex: 1;
    min-width: 0;
}

.card-content h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
    white-space: normal;
    line-height: 1.4;
}

.card-content p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.action-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.module-card:hover .action-arrow {
    opacity: 1;
    transform: translateX(0);
    background: var(--primary);
    color: white;
}

.section-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
    opacity: 0.5;
}

.back-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.back-btn:hover {
    background: var(--bg-body-secondary);
    color: var(--primary);
}

.quick-search-card {
    background: linear-gradient(to right, var(--bg-surface), #f8fafc);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 20px;
    margin-top: 32px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
}

@media (max-width: 768px) {
    .welcome-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .module-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Mobile Density Override: Force 2 columns */
    .module-grid.mobile-2-col {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .module-grid.mobile-2-col .module-card {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        min-height: auto;
    }

    .module-grid.mobile-2-col .module-card .icon-box {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-bottom: 8px;
    }

    .module-grid.mobile-2-col .module-card h3 {
        font-size: 14px;
        line-height: 1.3;
    }
}