/* ==========================================
       🎨 MODERN CSS DESIGN SYSTEM
       ========================================== */
    
    
    /* Import Google Fonts */
    @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;600;700;900&display=swap');
    
    
    /* Root Variables */
    :root {
        /* Modern Color Palette - Blue Theme */
        --primary-gradient: linear-gradient(135deg, #1d4ed8 0%, #60a5fa 100%); /* Blue 600 -> 400 */
        --success-gradient: linear-gradient(135deg, #16a34a 0%, #22c55e 100%); /* Green 600 -> 500 */
        --info-gradient: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);    /* Sky 600 -> 500 */
        --warning-gradient: linear-gradient(135deg, #d97706 0%, #f59e0b 100%); /* Amber 600 -> 500 */
        --danger-gradient: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);  /* Red 600 -> 500 */

        /* Solid Colors - Blue Theme */
        --primary: #1d4ed8;       /* Blue 600 */
        --primary-dark: #1e40af;  /* Blue 700 */
        --primary-light: #60a5fa; /* Blue 400 */
        --success: #16a34a;       /* Green 600 */
        --success-dark: #15803d;  /* Green 700 */
        --info: #0284c7;          /* Sky 600 */
        --warning: #d97706;       /* Amber 600 */
        --danger: #dc2626;        /* Red 600 */
       
        /* Neutrals */
        --dark: #1a202c;
        --gray-900: #2d3748;
        --gray-800: #4a5568; /* Kept for reference */
        --gray-700: #4a5568; /* Darkened */
        --gray-600: #4a5568; /* Darkened */
        --gray-500: #cbd5e0;
        --gray-400: #e2e8f0;
        --gray-300: #edf2f7;
        --gray-200: #f7fafc;
        --white: #ffffff;
       
        /* Shadows */
        --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
        --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
        --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
        --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
        --shadow-2xl: 0 25px 50px rgba(0,0,0,0.25);
        --shadow-inner: inset 0 2px 4px rgba(0,0,0,0.06);
        --shadow-glow: 0 0 20px rgba(29, 78, 216, 0.4);
       
        /* Border Radius */
        --radius-sm: 8px;
        --radius-md: 12px;
        --radius-lg: 16px;
        --radius-xl: 24px;
        --radius-2xl: 32px;
        --radius-full: 9999px;
       
        /* Transitions */
        --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
       
        /* Z-Index */
        --z-dropdown: 1000;
        --z-modal: 1050;
        --z-tooltip: 1080;
        --z-notification: 1090;
    }
    
    
    /* Global Styles */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    
    body {
        font-family: 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
        background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%); /* Vibrant Blue to Deep Blue Gradient */
        min-height: 100vh;
        color: #fff; /* White text for readability on blue background */
        line-height: 1.6;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    
    /* Beautiful Container */
    .container {
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    
    /* Modern Card Design */
    .card {
        background: var(--white);
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-xl);
        overflow: hidden;
        position: relative;
        transition: var(--transition-base);
        border: 1px solid rgba(255, 255, 255, 0.8);
    }
    
    
    .card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(135deg, #1d4ed8 0%, #60a5fa 100%);
    }
    
    
    .card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-2xl);
    }
    
    
    /* Glassmorphism Card */
    .glass-card {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: var(--radius-xl);
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
        transition: var(--transition-base);
    }
    
    
    .glass-card:hover {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.25);
    }
    
    
    /* ==========================================
       🎨 CLEAN MODERN BUTTONS
       ========================================== */
    
    
    .btn {
        padding: 10px 20px;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        font-weight: 500;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.15s ease;
        text-transform: none;
        letter-spacing: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        position: relative;
        min-height: 36px;
        font-family: 'Noto Sans Thai', sans-serif;
        text-decoration: none;
        outline: none;
        background: #ffffff;
        color: #1f2937; /* Darkened from gray-700 to gray-800 */
        box-shadow: none;
    }
    
    
    .btn:hover {
        background: #f9fafb;
        border-color: #9ca3af;
    }
    
    
    .btn:focus {
        outline: 2px solid #1d4ed8;
        outline-offset: 2px;
    }
    
    
    .btn:active {
        background: #f3f4f6;
        transform: none;
    }
    
    
    /* Primary Button */
    .btn-primary {
        background: #1d4ed8 !important; /* Blue 600 */
        color: #ffffff !important;
        border-color: #1d4ed8 !important;
    }
    
    
    .btn-primary:hover {
        background: #1e40af !important; /* Blue 700 */
        border-color: #1e40af !important;
    }
    
    
    .btn-primary:focus {
        outline: 2px solid #1d4ed8 !important;
        outline-offset: 2px;
        background: #1d4ed8 !important;
        border-color: #1d4ed8 !important;
    }
    
    
    .btn-primary:active {
        background: #1e3a8a !important; /* Blue 800 */
        border-color: #1e3a8a !important;
        transform: none;
    }
    
    
    /* Success Button */
    .btn-success {
        background: #059669 !important; /* Darker: green-600 */
        color: #ffffff !important;
        border-color: #059669 !important;
    }
    
    
    .btn-success:hover {
        background: #047857 !important; /* Darker: green-700 */
        border-color: #047857 !important;
    }
    
    
    /* Danger Button */
    .btn-danger {
        background: #dc2626 !important; /* Darker: red-600 */
        color: #ffffff !important;
        border-color: #dc2626 !important;
    }
    
    
    .btn-danger:hover {
        background: #b91c1c !important; /* Darker: red-700 */
        border-color: #b91c1c !important;
    }
    
    
    /* Warning Button */
    .btn-warning {
        background: #1d4ed8 !important; /* Darker: blue-700 */
        color: #ffffff !important;
        border-color: #1d4ed8 !important;
    }
    
    
    .btn-warning:hover {
        background: #1e40af !important; /* Darker: blue-800 */
        border-color: #1e40af !important;
    }
    
    
    /* Info Button */
    .btn-info {
        background: #0891b2 !important; /* Darker: cyan-600 */
        color: #ffffff !important;
        border-color: #0891b2 !important;
    }
    
    
    .btn-info:hover {
        background: #0e7490 !important; /* Darker: cyan-700 */
        border-color: #0e7490 !important;
    }
    
    
    /* Secondary Button */
    .btn-secondary {
        background: #4b5563 !important; /* Darker: gray-600 */
        color: #ffffff !important;
        border-color: #4b5563 !important;
    }
    
    
    .btn-secondary:hover {
        background: #374151 !important; /* Darker: gray-700 */
        border-color: #374151 !important;
    }
    
    
    /* Outline Buttons */
    .btn-outline-primary {
        background: transparent;
        color: #1d4ed8;
        border-color: #1d4ed8;
    }
    
    
    .btn-outline-primary:hover {
        background: #1d4ed8;
        color: #ffffff;
    }
    
    
    .btn-outline-success {
        background: transparent;
        color: #10b981;
        border-color: #10b981;
    }
    
    
    .btn-outline-success:hover {
        background: #10b981;
        color: #ffffff;
    }
    
    
    .btn-outline-danger {
        background: transparent;
        color: #ef4444;
        border-color: #ef4444;
    }
    
    
    .btn-outline-danger:hover {
        background: #ef4444;
        color: #ffffff;
    }
    
    
    /* Button Sizes */
    .btn-sm {
        padding: 6px 12px;
        font-size: 14px;
        min-height: 28px;
    }
    
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 16px;
        min-height: 44px;
    }
    
    
    .btn-xl {
        padding: 18px 36px;
        font-size: 18px;
        min-height: 52px;
    }
    
    
    /* ==========================================
       🔍 SEARCH INPUT STYLES
       ========================================== */
    
    
    .search-input {
        position: relative;
        width: 100%;
    }
    
    
    .search-input input {
        width: 100%;
        padding: 12px 16px 12px 40px;
        border: 2px solid #d1d5db;
        border-radius: 8px;
        font-size: 14px;
        transition: all 0.2s ease;
        background: #ffffff;
    }
    
    
    .search-input input:focus {
        outline: none;
        border-color: #1d4ed8;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }
    
    
    .search-input .icon {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #9ca3af;
        font-size: 16px;
    }
    
    
    .search-button {
        padding: 12px 24px;
        background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
        color: #ffffff;
        border: none;
        border-radius: 8px;
        font-weight: 500;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    
    .search-button:hover {
        background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
    }
    
    
    .search-button:active {
        transform: translateY(0);
    }
    
    
    .quick-action-btn {
        padding: 8px 16px;
        border: none;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    
    .quick-action-btn.gray {
        background: #f3f4f6;
        color: #374151;
    }
    
    
    .quick-action-btn.gray:hover {
        background: #e5e7eb;
    }
    
    
    .quick-action-btn.green {
        background: #dcfce7;
        color: #166534;
    }
    
    
    .quick-action-btn.green:hover {
        background: #bbf7d0;
    }
    
    
    .btn:disabled:hover {
        transform: none !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    }
    
    
    /* Loading Button State */
    .btn.loading {
        position: relative;
        pointer-events: none;
        /* The spinner is now part of the button's HTML content, not a pseudo-element.
           This rule is kept to disable pointer events while loading. */
    }
    
    
    @keyframes button-spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    
    
    /* Beautiful Input Fields */
    .form-group {
        margin-bottom: 24px;
    }
    
    
    .form-label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: var(--gray-800);
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    
    .form-control {
        width: 100%;
        padding: 14px 18px;
        background: var(--white);
        border: 2px solid var(--gray-400);
        border-radius: var(--radius-md);
        font-size: 15px;
        transition: var(--transition-fast);
        box-shadow: var(--shadow-sm);
    }
    
    
    .form-control:hover {
        border-color: var(--gray-500);
    }
    
    
    .form-control:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.1), var(--shadow-md);
        background: var(--white);
    }
    
    
    .form-control.is-valid {
        border-color: var(--success);
    }
    
    
    .form-control.is-invalid {
        border-color: var(--danger);
        animation: shake 0.3s;
    }
    
    
    /* Modern Select */
    .form-select {
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 20px;
        padding-right: 45px;
    }
    
    
    /* Beautiful Radio & Checkbox */
    .form-check {
        display: flex;
        align-items: center;
        margin-bottom: 12px;
        cursor: pointer;
        transition: var(--transition-fast);
        padding: 12px;
        border-radius: var(--radius-md);
    }
    
    
    .form-check:hover {
        background: var(--gray-200);
    }
    
    
    .form-check-input {
        width: 20px;
        height: 20px;
        margin-right: 12px;
        cursor: pointer;
        position: relative;
    }
    
    
    .form-check-input[type="radio"] {
        border-radius: 50%;
    }
    
    
    .form-check-input[type="checkbox"] {
        border-radius: var(--radius-sm);
    }
    
    
    .form-check-input:checked {
        background: var(--primary-gradient);
        border-color: var(--primary);
    }
    
    
    /* Modern Stat Cards */
    .stat-card {
        padding: 24px;
        border-radius: var(--radius-lg);
        position: relative;
        overflow: hidden;
        box-shadow: var(--shadow-lg);
        transition: var(--transition-base);
    }
    
    
    .stat-card::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 100px;
        height: 100px;
        background: linear-gradient(135deg, rgba(29, 78, 216, 0.08) 0%, rgba(30, 64, 175, 0.08) 100%);
        border-radius: 50%;
        transform: translate(30px, -30px);
    }


    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-xl);
    }


    .stat-card.loading {
        pointer-events: none;
    }


    .stat-card .stat-card-content {
        transition: opacity var(--transition-fast);
    }

    .stat-card.loading .stat-card-content {
        opacity: 0.35;
    }

    .stat-card .stat-spinner {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 28px;
        height: 28px;
        margin: -14px 0 0 -14px;
        border-radius: 9999px;
        border: 3px solid rgba(255, 255, 255, 0.35);
        border-top-color: rgba(255, 255, 255, 0.95);
        animation: stat-card-spin 0.8s linear infinite;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .stat-card.loading .stat-spinner {
        opacity: 1;
    }

    @keyframes stat-card-spin {
        to {
            transform: rotate(360deg);
        }
    }

    .stat-card-icon {
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius-md);
        font-size: 24px;
        margin-bottom: 16px;
    }
    
    
    .stat-card-icon.primary {
        background: linear-gradient(135deg, #1d4ed8 0%, #60a5fa 100%);
        color: var(--white);
    }
    
    
    .stat-card-icon.success {
        background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
        color: var(--white);
    }
    
    
    .stat-card-icon.info {
        background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        color: var(--white);
    }
    
    
    .stat-card-icon.warning {
        background: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%);
        color: var(--white);
    }
    
    
    .stat-card-value {
        font-size: 32px;
        font-weight: 700;
        color: var(--gray-900);
        margin-bottom: 4px;
        background: linear-gradient(135deg, #1d4ed8 0%, #60a5fa 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    
    
    .stat-card-label {
        font-size: 14px;
        color: var(--gray-800);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 600;
    }
    
    
    /* Modern Tables */
    .table-container {
        background: var(--white);
        border-radius: var(--radius-lg);
        overflow: hidden;
        box-shadow: var(--shadow-lg);
    }
    
    
    .table {
        width: 100%;
        border-collapse: collapse;
    }
    
    
    .table thead {
        background-color: #374151; /* Tailwind's gray-700. Clean and professional. */
    }
    
    
    .table thead th {
        padding: 16px;
        text-align: left;
        color: var(--white);
        font-weight: 600;
        text-transform: uppercase;
        font-size: 14px;
        letter-spacing: 0.5px;
    }
    
    
    .table tbody tr {
        border-bottom: 1px solid var(--gray-300);
        transition: var(--transition-fast);
    }
    
    .table tbody tr:hover {
        background-color: #DCFCE7; /* Tailwind's green-100, for a light green hover effect */
    }
    
    
    .table tbody td {
        padding: 16px;
        color: #000000;
    }

    /* Beautiful Badges */
    .badge {
        display: inline-flex;
        align-items: center;
        padding: 6px 12px;
        border-radius: var(--radius-full);
        font-size: 14px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    
    .badge-primary {
        background: linear-gradient(135deg, #1d4ed8 0%, #60a5fa 100%);
        color: var(--white);
    }
    
    
    .badge-success {
        background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
        color: var(--white);
    }
    
    
    .badge-warning {
        background: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%);
        color: var(--white);
    }
    
    
    .badge-danger {
        background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
        color: var(--white);
    }
    
    
    .badge-info {
        background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        color: var(--white);
    }
    
    
    /* Modern Modal */
    .modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: var(--z-modal);
        animation: fadeIn 0.3s ease;
    }
    
    
    .modal-content {
        background: var(--white);
        border-radius: var(--radius-xl);
        padding: 32px;
        max-width: 600px;
        width: 90%;
        max-height: 90vh;
        overflow-y: auto;
        box-shadow: var(--shadow-2xl);
        animation: slideUp 0.3s ease;
    }
    
    
    .modal-header {
        margin-bottom: 24px;
        padding-bottom: 16px;
        border-bottom: 2px solid var(--gray-300);
    }
    
    
    .modal-title {
        font-size: 24px;
        font-weight: 700;
        color: var(--gray-900);
    }
    
    
    /* Progress Bar */
    .progress {
        height: 8px;
        background: var(--gray-300);
        border-radius: var(--radius-full);
        overflow: hidden;
        box-shadow: var(--shadow-inner);
    }
    
    
    .progress-bar {
        height: 100%;
        background: linear-gradient(90deg, #1d4ed8 0%, #60a5fa 100%);
        border-radius: var(--radius-full);
        transition: width 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    
    .progress-bar::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        animation: shimmer 2s infinite;
    }
    
    
    /* Alert/Notification */
    .alert {
        padding: 16px 20px;
        border-radius: var(--radius-md);
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 12px;
        animation: slideInRight 0.3s ease;
    }
    
    
    .alert-success {
        background: linear-gradient(135deg, rgba(86, 171, 47, 0.1) 0%, rgba(168, 224, 99, 0.1) 100%);
        border-left: 4px solid var(--success);
    }
    
    
    .alert-info {
        background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
        border-left: 4px solid var(--info);
    }
    
    
    .alert-warning {
        background: linear-gradient(135deg, rgba(242, 153, 74, 0.1) 0%, rgba(242, 201, 76, 0.1) 100%);
        border-left: 4px solid var(--warning);
    }
    
    
    .alert-danger {
        background: linear-gradient(135deg, rgba(235, 51, 73, 0.1) 0%, rgba(244, 92, 67, 0.1) 100%);
        border-left: 4px solid var(--danger);
    }
    
    
    /* Tabs */
    .tabs {
        display: flex;
        gap: 2px;
        border-bottom: 2px solid var(--gray-300);
        margin-bottom: 24px;
    }
    
    
    .tab-btn {
        padding: 8px 14px;
        background: transparent !important;
        border: none;
        color: var(--gray-800) !important;
        font-weight: 600;
        font-size: 14px;
        line-height: 1.2;
        cursor: pointer;
        position: relative;
        transition: var(--transition-fast);
        border-radius: 12px;
    }
    
    
    .tab-btn:hover {
        color: var(--primary) !important;
        background: rgba(29, 78, 216, 0.05) !important;
    }
    
    
    .tab-btn.active {
        color: var(--primary) !important;
        background: rgba(29, 78, 216, 0.1) !important;
        border-radius: 12px;
    }
    
    
    .tab-btn.active::after {
        content: '';
        position: absolute;
        bottom: 0px;
        left: 20%;
        right: 20%;
        height: 3px;
        background: var(--primary-gradient) !important;
        border-radius: 3px 3px 0 0;
    }

    .admin-tab-row {
        row-gap: 8px;
    }

    .btn-icon-only {
        width: 36px;
        min-width: 36px;
        padding: 0;
        gap: 0;
    }

    .btn-icon-only i {
        margin: 0 !important;
    }
    
    
    /* Loading Spinner */
    .spinner {
        width: 40px;
        height: 40px;
        border: 4px solid var(--gray-300);
        border-top-color: var(--primary);
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }
    
    
    .spinner-container {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px;
    }
    
    
    /* Animations */
    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
    
    
    @keyframes slideUp {
        from {
            transform: translateY(20px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    
    @keyframes slideInRight {
        from {
            transform: translateX(100%);
        }
        to {
            transform: translateX(0);
        }
    }
    
    
    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }
    
    
    @keyframes shimmer {
        0% {
            transform: translateX(-100%);
        }
        100% {
            transform: translateX(100%);
        }
    }
    
    
    @keyframes shake {
        0%, 100% {
            transform: translateX(0);
        }
        10%, 30%, 50%, 70%, 90% {
            transform: translateX(-5px);
        }
        20%, 40%, 60%, 80% {
            transform: translateX(5px);
        }
    }
    
    
    @keyframes pulse {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.05);
        }
    }
    
    
    /* Scrollbar */
    * {
        scrollbar-color: #1d4ed8 #f7fafc !important;
        scrollbar-width: thin !important;
    }

    ::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }
    
    
    ::-webkit-scrollbar-track {
        background: var(--gray-200) !important;
        border-radius: var(--radius-full);
    }
    
    
    ::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #1d4ed8 0%, #60a5fa 100%) !important;
        border-radius: var(--radius-full);
    }
    
    
    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    }
    
    
    /* Responsive */
    @media (max-width: 768px) {
        .container {
            padding: 0 16px;
        }
       
        .modal-content {
            padding: 24px;
            width: 95%;
        }
       
        .btn {
            padding: 10px 20px;
            font-size: 14px;
        }
       
        .stat-card {
            padding: 20px;
        }
       
        .stat-card-value {
            font-size: 24px;
        }
       
        .table {
            font-size: 14px;
        }
       
        .table thead th,
        .table tbody td {
            padding: 12px 8px;
        }
    }
    
    
    /* Choice Labels */
    .choice-label {
        display: flex;
        align-items: center;
        padding: 12px 16px;
        margin-bottom: 8px;
        background: var(--white);
        border: 2px solid var(--gray-300);
        border-radius: var(--radius-md);
        cursor: pointer;
        transition: var(--transition-fast);
    }
    
    
    .choice-label:hover {
        border-color: var(--primary);
        background: var(--gray-50);
    }
    
    
    .choice-label.selected {
        border-color: var(--primary);
        background: linear-gradient(135deg, rgba(29, 78, 216, 0.1) 0%, rgba(30, 64, 175, 0.1) 100%);
    }
    
    
    .choice-label input[type="radio"] {
        margin-right: 12px;
        width: 18px;
        height: 18px;
    }
    
    
    .choice-text {
        font-size: 16px;
        color: var(--dark);
        font-weight: 500;
    }
    
    
    /* Navigation Buttons */
    .nav-btn {
        width: 40px;
        height: 40px;
        border: 2px solid var(--gray-400);
        background: var(--white);
        color: var(--gray-600);
        border-radius: var(--radius-md);
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition-fast);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    
    .nav-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
    }
    
    
    .nav-btn.current {
        background: var(--primary);
        border-color: var(--primary);
        color: var(--white);
    }
    
    
    .nav-btn.answered {
        background: var(--success);
        border-color: var(--success);
        color: var(--white);
    }
    
    
    /* Info Cards */
    .info-card {
        background: var(--gray-50);
        padding: 16px;
        border-radius: var(--radius-md);
        border-left: 4px solid var(--primary);
    }
    
    
    /* Input Field */
    .input-field {
        width: 100%;
        padding: 12px 16px;
        border: 2px solid #1d4ed8 !important; /* น้ำเงินชัด */
        border-radius: var(--radius-md);
        font-size: 15px;
        font-weight: 500;
        transition: var(--transition-fast);
        background: #ffffff !important; /* ขาวสะอาด */
        color: #1f2937 !important; /* ข้อความสีเข้ม */
        box-shadow: 0 1px 3px rgba(59, 130, 246, 0.2); /* เงาน้ำเงินเบาๆ */
    }


    .input-field:focus {
        outline: none;
        border-color: #1e40af !important; /* น้ำเงินเข้มขึ้นเมื่อ focus */
        box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.3) !important;
        background: #ffffff !important;
    }


    .input-field:hover {
        border-color: #1d4ed8 !important; /* น้ำเงินเข้มขึ้นเมื่อ hover */
        box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25);
    }
    
    
    /* Tab Content */
    .tab-content {
        background: var(--white);
        border-radius: var(--radius-lg);
        padding: 24px;
        box-shadow: var(--shadow-lg);
    }
    
    
    .tab-content.hidden {
        display: none;
    }
    
    
    /* Modal */
    .modal.hidden {
        display: none;
    }
    
    
    /* Utility Classes */
    .text-center { text-align: center; }
    .text-left { text-align: left; }
    .text-right { text-align: right; }
    
    
    .mt-1 { margin-top: 8px; }
    .mt-2 { margin-top: 16px; }
    .mt-3 { margin-top: 24px; }
    .mt-4 { margin-top: 32px; }
    
    
    .mb-1 { margin-bottom: 8px; }
    .mb-2 { margin-bottom: 16px; }
    .mb-3 { margin-bottom: 24px; }
    .mb-4 { margin-bottom: 32px; }
    
    
    .p-1 { padding: 8px; }
    .p-2 { padding: 16px; }
    .p-3 { padding: 24px; }
    .p-4 { padding: 32px; }
    
    
    .hidden { display: none !important; }
    .flex { display: flex; }
    .flex-col { flex-direction: column; }
    .items-center { align-items: center; }
    .justify-center { justify-content: center; }
    .justify-between { justify-content: space-between; }
    .gap-1 { gap: 8px; }
    .gap-2 { gap: 16px; }
    .gap-3 { gap: 24px; }
    
    
    .w-full { width: 100%; }
    .h-full { height: 100%; }
    
    
    .bg-white { background: var(--white); }
    .bg-primary { background: var(--primary); }
    .bg-success { background: var(--success); }
    .bg-danger { background: var(--danger); }
    
    
    .text-primary { color: var(--primary); }
    .text-success { color: var(--success); }
    .text-danger { color: var(--danger); }
    .text-white { color: var(--white); }
    .text-gray { color: var(--gray-600); }
    
    
    .font-bold { font-weight: 700; }
    .font-semibold { font-weight: 600; }
    .font-medium { font-weight: 500; }
    
    
    .rounded { border-radius: var(--radius-md); }
    .rounded-lg { border-radius: var(--radius-lg); }
    .rounded-xl { border-radius: var(--radius-xl); }
    .rounded-full { border-radius: var(--radius-full); }
    
    
    .shadow { box-shadow: var(--shadow-md); }
    .shadow-lg { box-shadow: var(--shadow-lg); }
    .shadow-xl { box-shadow: var(--shadow-xl); }
    

    
    /* Print Styles for A4 Format */
    .print-area {
        display: none;
    }

    /* Screen styles for print preview modal */
    .print-area.show-preview {
        display: block;
        width: 100% !important;     /* override 210mm from screen CSS */
        max-width: 100% !important;
        margin: 0 auto;
        padding: 16px;
        background: white;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
        box-sizing: border-box;
    }

    /* Wrap the table in a scrollable container */
    .print-area.show-preview .print-table-wrapper {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .print-area.show-preview .print-table {
        width: 100%;
        min-width: 850px;
        border-collapse: collapse;
        font-size: 13px;
    }

    .print-area.show-preview .print-table th,
    .print-area.show-preview .print-table td {
        border: 1px solid #333;
        padding: 8px; /* Bigger padding for readability */
        text-align: center;
        vertical-align: middle;
        font-size: 13px;
        line-height: 1.4;
        box-sizing: border-box;
        white-space: nowrap; /* ห้ามตัดบรรทัดเด็ดขาด */
    }

    /* เน้นให้ชื่อยาวแค่ไหนก็ไม่ตัด และบังคับจัดชิดซ้าย */
    .print-area.show-preview .print-table th:nth-child(3),
    .print-area.show-preview .print-table td:nth-child(3) {
        text-align: left;
        padding-left: 12px;
        min-width: 250px;
        width: 250px;
        white-space: nowrap;
    }
   
    /* Room */
    .print-area.show-preview .print-table th:nth-child(5),
    .print-area.show-preview .print-table td:nth-child(5) { 
        min-width: 80px;
    }

    /* Level column */
    .print-area.show-preview .print-table th:nth-child(8),
    .print-area.show-preview .print-table td:nth-child(8) {
        min-width: 90px;
    }

    /* Attempt column */
    .print-area.show-preview .print-table th:nth-child(9),
    .print-area.show-preview .print-table td:nth-child(9) {
        min-width: 60px;
    }

    /* Status column */
    .print-area.show-preview .print-table th:nth-child(10),
    .print-area.show-preview .print-table td:nth-child(10) {
        min-width: 120px;
    }

    @media print {
        html {
            font-size: 14px;
            line-height: 1.45;
            -webkit-print-color-adjust: exact;
            print-color-adjust: exact;
        }

        html[data-os="windows"] {
            font-size: 13.2px;
        }

        html[data-os="mac"] {
            font-size: 10px;
        }

        .print-page {
            width: 100%;
            margin: 0;
            padding: 0;
            font-family: 'Sarabun', 'TH SarabunPSK', 'Tahoma', sans-serif;
            font-size: 1rem;
            line-height: 1.45;
            color: #000;
            background: #fff;
        }

        html[data-os="mac"] .print-page {
            line-height: 1.6;
        }

        html[data-os="mac"] .print-table th,
        html[data-os="mac"] .print-table td {
            line-height: 1.6;
        }

        .print-header h1,
        .print-header h2,
        .print-header p,
        .print-header span,
        .print-stats h3,
        .print-stats p,
        #printStats p,
        .print-footer p {
            margin: 0;
        }

        .print-header h1 + p,
        .print-header p + p,
        .print-header span + span {
            margin-top: 1.2mm;
        }

        .print-stats h3 {
            margin-bottom: 2mm;
        }

        #printStats p + p {
            margin-top: 1.2mm;
        }

        .print-footer p + p {
            margin-top: 1.2mm;
        }

        html[data-os="mac"] .print-header h2.text-base {
            font-size: 1.25rem !important;
        }

        html[data-os="mac"] .print-header h1.text-xl {
            font-size: 1.5rem !important;
        }

        html[data-os="mac"] .print-header h2 + p,
        html[data-os="mac"] .print-header p + p {
            margin-top: 2mm;
        }

        html,
        body {
            font-size: 1rem;
            margin: 0;
            padding: 0;
            width: 100%;
            overflow: visible !important;
        }

        /* ซ่อนทุกอย่างก่อน แล้วเปิดเฉพาะสาย DOM ของพื้นที่พิมพ์
           เพื่อตัด layout ส่วนอื่นทิ้งจริงและไม่ให้เกิดหน้าว่างท้ายรายงาน */
        body > * {
            display: none !important;
        }

        #legacy-root {
            display: block !important;
        }

        #legacy-root > *:not(#printArea) {
            display: none !important;
        }

        .print-area {
            display: block !important;
            position: static !important;
            width: 100%;
            margin: 0;
            padding: 0;
            background: #fff !important;
        }

        .print-page {
            page-break-after: auto;
            break-after: auto;
        }

        /* A4 Page Settings - ปรับให้เหมาะกับทั้ง Mac และ Windows */
        @page {
            size: A4;
            margin: 10mm 15mm;
        }

        .print-header {
            margin-bottom: 4mm;
            border-bottom: 2px solid #000;
            padding-bottom: 2.5mm;
        }

        .print-table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 6mm;
            table-layout: fixed;
        }

        html[data-os="windows"] .print-table {
            margin-bottom: 4mm;
        }

        .print-table th,
        .print-table td {
            border: 1px solid #000 !important;
            padding: 1mm 1.5mm !important;
            text-align: center;
            vertical-align: middle;
            background: #fff !important;
            box-sizing: border-box;
        }

        .print-table th {
            background: #f0f0f0 !important;
            font-weight: bold;
        }

        .print-performance-badge {
            display: inline;
            font-weight: 700;
            line-height: inherit;
            text-align: center;
        }

        /* Ensure text utility classes follow platform-specific sizing */
        .text-xs,
        .text-xs *,
        .text-sm,
        .text-sm *,
        small {
            font-size: inherit !important;
        }

        /* กำหนดความกว้างคอลัมน์ - 10 คอลัมน์ */
        .print-table th:nth-child(1),
        .print-table td:nth-child(1) { width: 4%; }

        .print-table th:nth-child(2),
        .print-table td:nth-child(2) { width: 9%; }

        .print-table th:nth-child(3),
        .print-table td:nth-child(3) {
            width: 28%;
            text-align: left !important;
        }

        .print-table th:nth-child(4),
        .print-table td:nth-child(4) { width: 6%; }

        .print-table th:nth-child(5),
        .print-table td:nth-child(5) { width: 9%; }

        .print-table th:nth-child(6),
        .print-table td:nth-child(6) { width: 8%; }

        .print-table th:nth-child(7),
        .print-table td:nth-child(7) { width: 8%; }

        .print-table th:nth-child(8),
        .print-table td:nth-child(8) { width: 11%; }

        .print-table th:nth-child(9),
        .print-table td:nth-child(9) { width: 7%; }

        .print-table th:nth-child(10),
        .print-table td:nth-child(10) { width: 10%; }

        html[data-os="windows"] .print-page {
            line-height: 1.16;
        }

        html[data-os="windows"] .print-table th,
        html[data-os="windows"] .print-table td {
            line-height: 1.16;
            padding: 0.62mm 0.95mm !important;
        }

        html[data-os="windows"] .print-header h2.text-base {
            font-size: 1.32rem !important;
        }

        html[data-os="windows"] .print-header h1.text-xl {
            font-size: 1.6rem !important;
        }

        html[data-os="windows"] .print-header h2 + p,
        html[data-os="windows"] .print-header p + p {
            margin-top: 1.5mm;
        }

        html[data-os="windows"] .print-table th:nth-child(1),
        html[data-os="windows"] .print-table td:nth-child(1) { width: 4%; }

        html[data-os="windows"] .print-table th:nth-child(2),
        html[data-os="windows"] .print-table td:nth-child(2) { width: 9%; }

        html[data-os="windows"] .print-table th:nth-child(3),
        html[data-os="windows"] .print-table td:nth-child(3) {
            width: 26%;
            text-align: left !important;
        }

        html[data-os="windows"] .print-table th:nth-child(4),
        html[data-os="windows"] .print-table td:nth-child(4) { width: 6%; }

        html[data-os="windows"] .print-table th:nth-child(5),
        html[data-os="windows"] .print-table td:nth-child(5) { width: 9%; }

        html[data-os="windows"] .print-table th:nth-child(6),
        html[data-os="windows"] .print-table td:nth-child(6) { width: 8%; }

        html[data-os="windows"] .print-table th:nth-child(7),
        html[data-os="windows"] .print-table td:nth-child(7) { width: 8%; }

        html[data-os="windows"] .print-table th:nth-child(8),
        html[data-os="windows"] .print-table td:nth-child(8) { width: 12.8%; }

        html[data-os="windows"] .print-table th:nth-child(9),
        html[data-os="windows"] .print-table td:nth-child(9) { width: 6%; }

        html[data-os="windows"] .print-table th:nth-child(10),
        html[data-os="windows"] .print-table td:nth-child(10) { width: 10.7%; }

        html[data-os="windows"] .print-stats {
            margin: 3mm 0;
        }

        html[data-os="windows"] .print-footer {
            margin-top: 4mm;
        }

        /* Mac-specific column widths for print preview and physical print */
        html[data-os="mac"] .print-area.show-preview .print-table th:nth-child(1),
        html[data-os="mac"] .print-area.show-preview .print-table td:nth-child(1),
        html[data-os="mac"] .print-table th:nth-child(1),
        html[data-os="mac"] .print-table td:nth-child(1) { width: 4%; }

        html[data-os="mac"] .print-area.show-preview .print-table th:nth-child(2),
        html[data-os="mac"] .print-area.show-preview .print-table td:nth-child(2),
        html[data-os="mac"] .print-table th:nth-child(2),
        html[data-os="mac"] .print-table td:nth-child(2) { width: 9%; }

        html[data-os="mac"] .print-area.show-preview .print-table th:nth-child(3),
        html[data-os="mac"] .print-area.show-preview .print-table td:nth-child(3),
        html[data-os="mac"] .print-table th:nth-child(3),
        html[data-os="mac"] .print-table td:nth-child(3) {
            width: 25%;
            text-align: left !important;
        }

        html[data-os="mac"] .print-area.show-preview .print-table th:nth-child(4),
        html[data-os="mac"] .print-area.show-preview .print-table td:nth-child(4),
        html[data-os="mac"] .print-table th:nth-child(4),
        html[data-os="mac"] .print-table td:nth-child(4) { width: 6%; }

        html[data-os="mac"] .print-area.show-preview .print-table th:nth-child(5),
        html[data-os="mac"] .print-area.show-preview .print-table td:nth-child(5),
        html[data-os="mac"] .print-table th:nth-child(5),
        html[data-os="mac"] .print-table td:nth-child(5) { width: 8%; }

        html[data-os="mac"] .print-area.show-preview .print-table th:nth-child(6),
        html[data-os="mac"] .print-area.show-preview .print-table td:nth-child(6),
        html[data-os="mac"] .print-table th:nth-child(6),
        html[data-os="mac"] .print-table td:nth-child(6) { width: 8%; }

        html[data-os="mac"] .print-area.show-preview .print-table th:nth-child(7),
        html[data-os="mac"] .print-area.show-preview .print-table td:nth-child(7),
        html[data-os="mac"] .print-table th:nth-child(7),
        html[data-os="mac"] .print-table td:nth-child(7) { width: 8%; }

        html[data-os="mac"] .print-area.show-preview .print-table th:nth-child(8),
        html[data-os="mac"] .print-area.show-preview .print-table td:nth-child(8),
        html[data-os="mac"] .print-table th:nth-child(8),
        html[data-os="mac"] .print-table td:nth-child(8) { width: 12%; }

        html[data-os="mac"] .print-area.show-preview .print-table th:nth-child(9),
        html[data-os="mac"] .print-area.show-preview .print-table td:nth-child(9),
        html[data-os="mac"] .print-table th:nth-child(9),
        html[data-os="mac"] .print-table td:nth-child(9) { width: 7%; }

        html[data-os="mac"] .print-area.show-preview .print-table th:nth-child(10),
        html[data-os="mac"] .print-area.show-preview .print-table td:nth-child(10),
        html[data-os="mac"] .print-table th:nth-child(10),
        html[data-os="mac"] .print-table td:nth-child(10) { width: 13%; }

        .print-stats {
            margin: 4mm 0;
            page-break-inside: avoid;
        }

        .print-footer {
            margin-top: 5mm;
            page-break-inside: avoid;
        }

        /* Hide unwanted elements */
        .no-print {
            display: none !important;
        }

        /* Ensure proper background */
        * {
            background: transparent !important;
            box-shadow: none !important;
            text-shadow: none !important;
        }
        
        /* Reset colors to black generally, but allow text color utilities */
        *:not(.text-green-700):not(.text-red-700):not(.text-blue-500):not([class*="text-"]) {
            color: #000 !important;
        }

        /* Table borders */
        .border,
        .border-gray-800 {
            border: 1px solid #000 !important;
        }

        /* Page break control */
        .page-break-before {
            page-break-before: always;
        }

        .page-break-after {
            page-break-after: always;
        }

        .page-break-inside-avoid {
            page-break-inside: avoid;
        }

        /* Logo sizing for print */
        img {
            max-width: 13mm !important;
            max-height: 13mm !important;
        }
    }

    /* Screen styles for print preview */
    @media screen {
        .print-area {
            display: none;
            background: white;
            box-shadow: 0 0 20px rgba(0,0,0,0.1);
            margin: 20px auto;
            padding: 20mm;
            width: 210mm;
            font-family: 'Sarabun', 'TH SarabunPSK', sans-serif;
        }

        .print-area.show {
            display: block;
        }

        /* พรีวิวในหน้าจอให้เห็นชัด */
        #printPreviewContent {
            font-size: 14px !important;
            color: #000 !important;
            background: #fff !important;
            line-height: 1.5;
            font-family: 'Sarabun', 'TH SarabunPSK', sans-serif;
        }

        #printPreviewContent .print-page {
            color: #000 !important;
            background: #fff !important;
            max-width: 1200px;
            margin: 0 auto;
        }

        #printPreviewContent .print-table-wrapper {
            display: block;
            width: 100%;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        #printPreviewContent .print-table {
            width: 100%;
            min-width: 1100px;
            border-collapse: collapse;
            table-layout: fixed;
        }

        #printPreviewContent .print-table th,
        #printPreviewContent .print-table td {
            padding: 8px 10px !important;
            white-space: nowrap;
            vertical-align: middle;
        }

        /* ใช้สัดส่วนคอลัมน์เดียวกับหน้า print จริง เพื่อลดอาการยัดข้อมูล */
        #printPreviewContent .print-table th:nth-child(1),
        #printPreviewContent .print-table td:nth-child(1) { width: 4%; }

        #printPreviewContent .print-table th:nth-child(2),
        #printPreviewContent .print-table td:nth-child(2) { width: 9%; }

        #printPreviewContent .print-table th:nth-child(3),
        #printPreviewContent .print-table td:nth-child(3) {
            width: 28%;
            text-align: left !important;
            white-space: normal;
            word-break: break-word;
        }

        #printPreviewContent .print-table th:nth-child(4),
        #printPreviewContent .print-table td:nth-child(4) { width: 6%; }

        #printPreviewContent .print-table th:nth-child(5),
        #printPreviewContent .print-table td:nth-child(5) { width: 9%; }

        #printPreviewContent .print-table th:nth-child(6),
        #printPreviewContent .print-table td:nth-child(6) { width: 8%; }

        #printPreviewContent .print-table th:nth-child(7),
        #printPreviewContent .print-table td:nth-child(7) { width: 8%; }

        #printPreviewContent .print-table th:nth-child(8),
        #printPreviewContent .print-table td:nth-child(8) { width: 11%; }

        #printPreviewContent .print-table th:nth-child(9),
        #printPreviewContent .print-table td:nth-child(9) { width: 7%; }

        #printPreviewContent .print-table th:nth-child(10),
        #printPreviewContent .print-table td:nth-child(10) { width: 10%; }

        html[data-os="mac"] #printPreviewContent .print-table th:nth-child(3),
        html[data-os="mac"] #printPreviewContent .print-table td:nth-child(3) {
            width: 25%;
        }

        html[data-os="windows"] #printPreviewContent {
            font-size: 15px !important;
            line-height: 1.42 !important;
        }

        html[data-os="windows"] #printPreviewContent .print-page {
            width: min(100%, 1060px);
            max-width: 1060px;
            margin: 0 auto !important;
            padding: 0 10px 8px !important;
            font-size: 1rem !important;
            line-height: 1.4 !important;
        }

        html[data-os="windows"] #printPreviewContent .print-header {
            margin-bottom: 14px !important;
            padding-bottom: 10px !important;
        }

        html[data-os="windows"] #printPreviewContent .print-table th,
        html[data-os="windows"] #printPreviewContent .print-table td {
            font-size: 14px !important;
            line-height: 1.28 !important;
            padding: 8px 10px !important;
        }

        html[data-os="windows"] #printPreviewContent .print-table {
            min-width: 1020px;
        }

        html[data-os="windows"] #printPreviewContent .print-table-wrapper {
            overflow-x: auto;
            padding-bottom: 6px;
        }

        html[data-os="windows"] #printPreviewContent .print-header h2.text-base {
            font-size: 1.34rem !important;
        }

        html[data-os="windows"] #printPreviewContent .print-header h1.text-xl {
            font-size: 1.64rem !important;
        }

        html[data-os="windows"] #printPreviewContent .print-header h2 + p,
        html[data-os="windows"] #printPreviewContent .print-header p + p {
            margin-top: 4px !important;
        }

        html[data-os="windows"] #printPreviewContent .print-table th:nth-child(3),
        html[data-os="windows"] #printPreviewContent .print-table td:nth-child(3) {
            width: 25%;
        }

        html[data-os="windows"] #printPreviewContent .print-table th:nth-child(8),
        html[data-os="windows"] #printPreviewContent .print-table td:nth-child(8) {
            width: 12.8%;
        }

        html[data-os="windows"] #printPreviewContent .print-table th:nth-child(10),
        html[data-os="windows"] #printPreviewContent .print-table td:nth-child(10) {
            width: 10.7%;
        }

        html[data-os="windows"] #printPreviewContent .print-stats {
            margin-top: 12px !important;
        }

        html[data-os="windows"] #printPreviewContent .print-footer {
            margin-top: 18px !important;
        }

        #printPreviewContent .print-header h1,
        #printPreviewContent .print-header h2,
        #printPreviewContent .print-header p {
            color: #000 !important;
            font-weight: bold;
        }

        #printPreviewContent table,
        #printPreviewContent th,
        #printPreviewContent td {
            color: #000 !important;
            border: 1px solid #000 !important;
        }

        #printPreviewContent th {
            background-color: #f3f4f6 !important;
            font-weight: bold !important;
        }

        #printPreviewContent .print-stats {
            color: #000 !important;
            border: 2px solid #000 !important;
        }

        #printPreviewContent .print-footer {
            color: #000 !important;
        }
    }

    /* Survey Choice Styles */
    .survey-choice {
      display: block;
      padding: 1rem;
      border: 2px solid #e5e7eb;
      border-radius: 0.75rem;
      cursor: pointer;
      transition: all 0.3s ease;
      background-color: #ffffff;
    }

    .survey-choice:hover {
      border-color: #f59e0b;
      background-color: #fff7ed;
      transform: translateY(-2px);
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .survey-choice.selected {
      border-color: #f59e0b;
      background-color: #fff7ed;
      box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
    }

    .survey-choice input[type="radio"] {
      display: none;
    }

    .survey-choice .choice-content {
      display: flex;
      justify-content: flex-start;
      align-items: center;
    }

    .survey-choice .choice-text {
      flex: 1;
      font-size: 1rem;
      color: #1f2937;
      line-height: 1.5;
    }

    .survey-choice.selected .choice-text {
      font-weight: 500;
      color: #1d4ed8;
    }
