/* 
===============================================================================
INDIANA VACCINE REFERENCE - COMPLETE STYLES
Database-backed stock management with print functionality
Version 2.0 - December 2024
===============================================================================
*/

/* PharmAssist Theme Variables - Dark Mode (Default) */
:root {
    /* Background Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: #141414;
    
    /* Border Colors */
    --border-color: #2a2a2a;
    --border-hover: #3a3a3a;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    
    /* Accent Colors */
    --accent-primary: #00d4ff;      /* Cyan - Primary brand color */
    --accent-secondary: #7c3aed;    /* Purple - Secondary brand color */
    --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    
    /* Status Colors */
    --success: #10b981;             /* Green */
    --error: #ef4444;               /* Red */
    --warning: #f59e0b;             /* Orange/Amber */
    --info: #3b82f6;                /* Blue */
    
    /* Effects */
    --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.15);
}

/* Light Mode Variables */
body.light-mode {
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --bg-card: #ffffff;
    --border-color: #e5e7eb;
    --border-hover: #d1d5db;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding-top: 60px;
    padding-bottom: 80px;
    transition: background 0.3s ease;
}

body.dark-mode {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* USER INFO BAR */
.user-info-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

body.dark-mode .user-info-bar {
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(100, 116, 139, 0.2);
}

.user-details {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.user-role {
    background: linear-gradient(135deg, #ec4899 0%, #7c3aed 100%);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.store-display {
    background: rgba(37, 99, 235, 0.3);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #93c5fd;
    cursor: pointer;
    transition: all 0.2s;
}

.store-display:hover {
    background: rgba(37, 99, 235, 0.5);
}

.header-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.icon-btn {
    background: rgba(100, 116, 139, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
}

.icon-btn:hover {
    background: rgba(100, 116, 139, 0.4);
    transform: translateY(-1px);
}

.back-btn {
    background: rgba(37, 99, 235, 0.9);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.back-btn:hover {
    background: rgba(29, 78, 216, 1);
    transform: translateY(-1px);
}

.print-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.print-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
}

.logout-btn {
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 44px;
}

.logout-btn:hover {
    background: rgba(220, 38, 38, 0.95);
    transform: translateY(-1px);
}

/* APP CONTAINER */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

body.dark-mode .app-container {
    background: transparent;
}

/* HEADER */
.app-header {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    text-align: center;
}

body.dark-mode .app-header {
    background: #1e293b;
    border: 1px solid rgba(100, 116, 139, 0.2);
}

.app-header h1 {
    font-size: 36px;
    color: #1e293b;
    margin-bottom: 8px;
}

body.dark-mode .app-header h1 {
    color: #f1f5f9;
}

.header-subtitle {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 12px;
}

body.dark-mode .header-subtitle {
    color: #94a3b8;
}

.update-info {
    font-size: 14px;
    color: #64748b;
}

body.dark-mode .update-info {
    color: #94a3b8;
}

/* MAIN CONTENT */
.vaccine-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body.dark-mode .vaccine-content {
    background: #1e293b;
    border: 1px solid rgba(100, 116, 139, 0.2);
}

/* SEARCH SECTION */
.search-section {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.search-input, .filter-select {
    flex: 1;
    min-width: 200px;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    min-height: 48px;
}

body.dark-mode .search-input,
body.dark-mode .filter-select {
    background: #0f172a;
    border-color: rgba(100, 116, 139, 0.3);
    color: #f1f5f9;
}

.search-input:focus, .filter-select:focus {
    outline: none;
    border-color: #2563eb;
}

.action-btn {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 14px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.4);
}

.action-btn.print-action {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.action-btn.print-action:hover {
    box-shadow: 0 6px 12px rgba(16, 185, 129, 0.4);
}

/* ========== VACCINE SECTIONS ========== */
.vaccine-section {
    margin-bottom: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: visible;
    transition: all 0.3s ease;
    position: relative;
    background: white;
}

body.dark-mode .vaccine-section {
    border-color: rgba(100, 116, 139, 0.3);
    background: #1e293b;
}

/* Section color coding */
.vaccine-section[data-category*="flu"] { border-left: 6px solid #3b82f6; }
.vaccine-section[data-category*="rsv"] { border-left: 6px solid #06b6d4; }
.vaccine-section[data-category*="covid"] { border-left: 6px solid #8b5cf6; }
.vaccine-section[data-category*="pneumo"] { border-left: 6px solid #0ea5e9; }
.vaccine-section[data-category*="shingles"] { border-left: 6px solid #f59e0b; }
.vaccine-section[data-category*="hpv"] { border-left: 6px solid #ec4899; }
.vaccine-section[data-category*="hepa"] { border-left: 6px solid #10b981; }
.vaccine-section[data-category*="hepb"] { border-left: 6px solid #14b8a6; }
.vaccine-section[data-category*="mmr"] { border-left: 6px solid #ef4444; }
.vaccine-section[data-category*="varicella"] { border-left: 6px solid #f97316; }
.vaccine-section[data-category*="meningo"] { border-left: 6px solid #6366f1; }
.vaccine-section[data-category*="tdap"] { border-left: 6px solid #84cc16; }
.vaccine-section[data-category*="rabies"] { border-left: 6px solid #71717a; }
.vaccine-section[data-category*="travel"] { border-left: 6px solid #fb923c; }

.vaccine-section.collapsed .vaccine-section-content {
    display: none;
}

/* STICKY SECTION HEADERS */
.section-header {
    font-size: 24px;
    color: #1e293b;
    padding: 20px 25px;
    border-bottom: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transition: all 0.2s;
    position: sticky;
    top: 60px;
    z-index: 10;
    touch-action: pan-y;
    border-radius: 10px 10px 0 0;
}

body.dark-mode .section-header {
    color: #f1f5f9;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.section-header:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

body.dark-mode .section-header:hover {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.section-icon {
    font-size: 28px;
    margin-right: 10px;
}

.collapse-indicator {
    margin-left: auto;
    font-size: 20px;
    transition: transform 0.3s ease;
    color: #2563eb;
}

body.dark-mode .collapse-indicator {
    color: #60a5fa;
}

.vaccine-section:not(.collapsed) .collapse-indicator {
    transform: rotate(180deg);
}

.vaccine-section-content {
    padding: 25px;
    display: block;
    border-radius: 0 0 10px 10px;
    background: inherit;
}

/* ========== TABLES ========== */
.vaccine-table-container {
    overflow-x: auto;
    margin-bottom: 20px;
    overflow-y: visible;
}

.vaccine-table-container table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
}

body.dark-mode .vaccine-table-container table {
    color: #f1f5f9;
}

.vaccine-table-container thead {
    display: table-header-group;
}

.vaccine-table-container th {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: white;
    padding: 14px 10px;
    text-align: left;
    font-weight: 600;
    position: relative;
    min-height: 48px;
    line-height: 1.4;
    white-space: normal;
    word-wrap: break-word;
    vertical-align: middle;
}

body.dark-mode .vaccine-table-container th {
    background: linear-gradient(135deg, #1e40af 0%, #6b21a8 100%);
}

.vaccine-table-container thead tr:first-child {
    height: auto;
    min-height: 48px;
}

.vaccine-table-container thead tr:first-child th {
    display: table-cell;
    height: auto;
    min-height: 48px;
}

.vaccine-table-container td {
    padding: 12px 8px;
    border-bottom: 1px solid #e2e8f0;
}

body.dark-mode .vaccine-table-container td {
    border-bottom-color: rgba(100, 116, 139, 0.2);
}

/* Alternating row colors */
.vaccine-table-container tbody tr:nth-child(odd) {
    background-color: rgba(248, 250, 252, 0.5);
}

.vaccine-table-container tbody tr:nth-child(even) {
    background-color: rgba(241, 245, 249, 0.8);
}

body.dark-mode .vaccine-table-container tbody tr:nth-child(odd) {
    background-color: rgba(15, 23, 42, 0.3);
}

body.dark-mode .vaccine-table-container tbody tr:nth-child(even) {
    background-color: rgba(30, 41, 59, 0.5);
}

.vaccine-table-container tbody tr:hover {
    background-color: rgba(37, 99, 235, 0.1);
}

body.dark-mode .vaccine-table-container tbody tr:hover {
    background-color: rgba(37, 99, 235, 0.15);
}

/* HELP TOOLTIPS */
.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 4px;
    cursor: help;
    position: relative;
    vertical-align: middle;
    flex-shrink: 0;
}

.tooltip-icon:hover .tooltip-text,
.tooltip-icon:active .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip-text {
    visibility: hidden;
    width: 220px;
    background-color: #1e293b;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -110px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    white-space: normal;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
}

.vaccine-name a {
    color: var(--accent-primary);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent-primary);
    transition: all 0.2s;
    font-weight: 600;
}

.vaccine-name a:hover {
    color: var(--accent-secondary);
    border-bottom-style: solid;
    text-decoration: underline;
}

.vaccine-name a::after {
    content: " ↗";
    font-size: 0.8em;
    vertical-align: super;
    opacity: 0.6;
}

/* STORE FLAG */
.store-flag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    user-select: none;
    min-height: 32px;
}

.store-flag:hover {
    background: rgba(0, 0, 0, 0.05);
}

.store-flag.available {
    color: var(--success);
    font-weight: 600;
}

.store-flag.unavailable {
    color: var(--error);
    font-weight: 600;
    opacity: 0.7;
}

.store-flag-icon {
    font-size: 16px;
}

.series-yes {
    background-color: rgba(16, 185, 129, 0.2);
    color: var(--success);
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

body.light-mode .series-yes {
    background-color: #dcfce7;
    color: #166534;
}

.series-no {
    background-color: rgba(75, 85, 99, 0.2);
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: 4px;
}

body.light-mode .series-no {
    background-color: #f3f4f6;
    color: #6b7280;
}

.series-conditional {
    background-color: rgba(251, 191, 36, 0.2);
    color: var(--warning);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    line-height: 1.3;
}

body.light-mode .series-conditional {
    background-color: #fef3c7;
    color: #92400e;
}

.latex-yes {
    background-color: #fed7aa;
    color: #c2410c;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

body.dark-mode .latex-yes {
    background-color: rgba(251, 146, 60, 0.2);
    color: #fdba74;
}

.latex-no {
    background-color: #f3f4f6;
    color: #6b7280;
    padding: 4px 8px;
    border-radius: 4px;
}

body.dark-mode .latex-no {
    background-color: rgba(75, 85, 99, 0.2);
    color: #9ca3af;
}

.age-cell {
    font-size: 0.9em;
}

.highlight-protocol {
    background-color: #dbeafe;
    font-weight: 600;
}

body.dark-mode .highlight-protocol {
    background-color: rgba(37, 99, 235, 0.2);
}

.highlight-rx {
    background-color: #fce7f3;
    font-weight: 600;
}

body.dark-mode .highlight-rx {
    background-color: rgba(236, 72, 153, 0.2);
}

.yes-dispense {
    background-color: #dcfce7;
    color: #166534;
    font-weight: 600;
}

body.dark-mode .yes-dispense {
    background-color: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.no-dispense {
    background-color: #fee2e2;
    color: #991b1b;
    font-weight: 600;
}

body.dark-mode .no-dispense {
    background-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

/* DOSE TIMING CELLS (Clickable) */
.dose-timing {
    cursor: pointer;
    transition: all 0.2s;
}

.dose-timing:hover {
    background-color: rgba(37, 99, 235, 0.15);
}

/* COVID TABLE SPECIFIC STYLES */
.covid-table-2025 thead tr:first-child th {
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.covid-table-2025 .unvaccinated-link {
    color: white;
    text-decoration: underline;
    cursor: pointer;
}

.covid-table-2025 .unvaccinated-link:hover {
    color: #fef3c7;
}

/* COVID Schedule Card */
.covid-schedule-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    padding: 20px;
}

body.dark-mode .covid-schedule-card {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border-color: rgba(14, 165, 233, 0.5);
}

.covid-schedule-title {
    color: #0369a1;
    margin-bottom: 16px;
    font-size: 1.1em;
}

body.dark-mode .covid-schedule-title {
    color: #38bdf8;
}

.covid-schedule-subtitle {
    color: #0c4a6e;
    margin-bottom: 8px;
    font-size: 0.95em;
}

body.dark-mode .covid-schedule-subtitle {
    color: #7dd3fc;
}

.covid-warning-note {
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
}

body.dark-mode .covid-warning-note {
    background-color: rgba(245, 158, 11, 0.15);
    border-left-color: #fbbf24;
}

.legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
}

body.dark-mode .legend {
    background: rgba(15, 23, 42, 0.5);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e293b;
}

body.dark-mode .legend-item {
    color: #f1f5f9;
}

.legend-box {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

/* NOTE BOX */
.note-box {
    background: #f8fafc;
    border-left: 4px solid #2563eb;
    padding: 16px;
    border-radius: 0 8px 8px 0;
    margin-top: 16px;
    font-size: 0.9em;
    color: #475569;
    line-height: 1.6;
}

body.dark-mode .note-box {
    background: rgba(15, 23, 42, 0.5);
    border-left-color: #60a5fa;
    color: #94a3b8;
}

/* INFO CARD */
.info-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
}

body.dark-mode .info-card {
    background: rgba(15, 23, 42, 0.5);
}

/* REMINDER BUTTONS */
.reminder-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.reminder-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.table-reminder-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 11px;
    transition: all 0.2s;
    margin: 2px;
}

.table-reminder-btn.dose-2 {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.table-reminder-btn.dose-3 {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.table-reminder-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ========== MODALS ========== */
.definition-modal, .timeline-modal, .store-select-modal, .print-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease-out;
}

.definition-modal.active, .timeline-modal.active, .store-select-modal.active, .print-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.definition-content, .timeline-content, .store-select-content, .print-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.print-content {
    max-width: 800px;
}

body.dark-mode .definition-content,
body.dark-mode .timeline-content,
body.dark-mode .store-select-content,
body.dark-mode .print-content {
    background: #1e293b;
    border: 1px solid rgba(100, 116, 139, 0.3);
    color: #f1f5f9;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.definition-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

body.dark-mode .definition-close {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.definition-close:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: rotate(90deg);
}

/* STORE SELECT MODAL */
.store-select-content {
    max-width: 400px;
    text-align: center;
}

.store-select-content h3 {
    margin-bottom: 20px;
    color: #1e293b;
}

body.dark-mode .store-select-content h3 {
    color: #f1f5f9;
}

.store-input-group {
    margin-bottom: 20px;
}

.store-input-group label {
    display: block;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 14px;
}

body.dark-mode .store-input-group label {
    color: #94a3b8;
}

.store-input-group input {
    width: 100%;
    padding: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 18px;
    text-align: center;
    letter-spacing: 2px;
}

body.dark-mode .store-input-group input {
    background: #0f172a;
    border-color: rgba(100, 116, 139, 0.3);
    color: #f1f5f9;
}

.store-input-group input:focus {
    outline: none;
    border-color: #2563eb;
}

.store-btn-group {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.store-btn-group button {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.store-btn-group .confirm-btn {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: white;
}

.store-btn-group .confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.store-btn-group .cancel-btn {
    background: #e2e8f0;
    color: #64748b;
}

body.dark-mode .store-btn-group .cancel-btn {
    background: rgba(100, 116, 139, 0.3);
    color: #94a3b8;
}

.store-btn-group .cancel-btn:hover {
    background: #cbd5e1;
}

/* PRINT MODAL */
.print-content h3 {
    margin-bottom: 16px;
    color: #1e293b;
}

body.dark-mode .print-content h3 {
    color: #f1f5f9;
}

.print-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

body.dark-mode .print-controls {
    border-bottom-color: rgba(100, 116, 139, 0.3);
}

.print-controls button {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.print-controls .select-all-btn {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: white;
}

.print-controls .select-none-btn {
    background: #f1f5f9;
    color: #64748b;
    border-color: #e2e8f0;
}

body.dark-mode .print-controls .select-none-btn {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
    border-color: rgba(100, 116, 139, 0.3);
}

.print-controls .in-stock-btn {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

.print-controls .out-stock-btn {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.print-vaccine-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
}

body.dark-mode .print-vaccine-list {
    border-color: rgba(100, 116, 139, 0.3);
}

.print-category {
    border-bottom: 1px solid #e2e8f0;
}

body.dark-mode .print-category {
    border-bottom-color: rgba(100, 116, 139, 0.2);
}

.print-category:last-child {
    border-bottom: none;
}

.print-category-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 5;
}

body.dark-mode .print-category-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.print-vaccine-items {
    padding: 8px 16px;
}

.print-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 0;
    font-size: 14px;
}

.print-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #2563eb;
    cursor: pointer;
}

.print-vaccine-item {
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}

.print-vaccine-item:hover {
    background: rgba(37, 99, 235, 0.1);
}

.print-vaccine-item .vaccine-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.print-vaccine-item .stock-indicator {
    font-size: 14px;
}

.print-vaccine-item.stock-available {
    border-left: 3px solid #22c55e;
}

.print-vaccine-item.stock-unavailable {
    border-left: 3px solid #ef4444;
}

.print-vaccine-item.stock-unmarked {
    border-left: 3px solid #94a3b8;
}

.print-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 2px solid #e2e8f0;
}

body.dark-mode .print-footer {
    border-top-color: rgba(100, 116, 139, 0.3);
}

.print-footer .selected-count {
    color: #64748b;
    font-size: 14px;
}

body.dark-mode .print-footer .selected-count {
    color: #94a3b8;
}

.print-footer .print-actions {
    display: flex;
    gap: 12px;
}

.print-footer button {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.print-footer .cancel-print-btn {
    background: #e2e8f0;
    color: #64748b;
}

body.dark-mode .print-footer .cancel-print-btn {
    background: rgba(100, 116, 139, 0.3);
    color: #94a3b8;
}

.print-footer .confirm-print-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.print-footer .confirm-print-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* TIMELINE MODAL SPECIFIC */
.timeline-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.timeline-header h3 {
    color: #1e293b;
    font-size: 1.3em;
}

body.dark-mode .timeline-header h3 {
    color: #f1f5f9;
}

.timeline-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    margin-bottom: 20px;
}

body.dark-mode .timeline-visual {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
}

.timeline-dose {
    text-align: center;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 120px;
}

body.dark-mode .timeline-dose {
    background: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.timeline-dose-label {
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 8px;
    font-size: 0.9em;
}

body.dark-mode .timeline-dose-label {
    color: #60a5fa;
}

.timeline-dose-time {
    color: #1e293b;
    font-size: 1em;
}

body.dark-mode .timeline-dose-time {
    color: #f1f5f9;
}

.timeline-arrow {
    font-size: 24px;
    color: #2563eb;
    font-weight: bold;
}

body.dark-mode .timeline-arrow {
    color: #60a5fa;
}

.timeline-details {
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
}

body.dark-mode .timeline-details {
    background: rgba(15, 23, 42, 0.5);
}

.timeline-details h4 {
    color: #1e293b;
    margin-bottom: 8px;
}

body.dark-mode .timeline-details h4 {
    color: #f1f5f9;
}

/* LOADING INDICATOR */
#loadingIndicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 23, 42, 0.95);
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    display: none;
    align-items: center;
    gap: 12px;
    z-index: 10001;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #60a5fa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* NOTIFICATIONS */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10002;
    transform: translateX(120%);
    transition: transform 0.3s ease-out;
    max-width: 350px;
}

.notification.show {
    transform: translateX(0);
}

.notification-info {
    border-left: 4px solid #2563eb;
}

.notification-success {
    border-left: 4px solid #22c55e;
}

.notification-error {
    border-left: 4px solid #ef4444;
}

body.dark-mode .notification {
    background: #1e293b;
    color: #f1f5f9;
}

.notification-icon {
    font-size: 20px;
}

.notification-message {
    font-size: 14px;
    color: #1e293b;
}

body.dark-mode .notification-message {
    color: #f1f5f9;
}

/* BOTTOM NAV (MOBILE) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    display: none;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

body.dark-mode .bottom-nav {
    background: rgba(15, 23, 42, 0.98);
    border-top: 1px solid rgba(100, 116, 139, 0.2);
}

.bottom-nav-btn {
    background: transparent;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-height: 52px;
    min-width: 60px;
}

.bottom-nav-btn:active {
    background: rgba(100, 116, 139, 0.3);
    transform: scale(0.95);
}

.bottom-nav-btn span {
    font-size: 20px;
}

/* SCROLL TO TOP */
#scrollTopBtn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 998;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

#scrollTopBtn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

#scrollTopBtn.show {
    display: flex;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
        padding-bottom: 80px;
    }

    .user-info-bar {
        padding: 10px 15px;
    }

    .back-btn, .print-btn {
        display: none;
    }

    .app-header h1 {
        font-size: 24px;
    }

    .section-header {
        font-size: 20px;
        padding: 16px 20px;
        top: 50px;
    }

    .bottom-nav {
        display: flex;
    }

    .definition-modal.active,
    .timeline-modal.active,
    .store-select-modal.active,
    .print-modal.active {
        padding: 0;
    }

    .definition-content,
    .timeline-content,
    .store-select-content,
    .print-content {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        padding: 60px 20px 20px 20px;
    }

    .definition-close {
        top: 10px;
        right: 10px;
        width: 48px;
        height: 48px;
    }

    .search-input,
    .filter-select,
    .action-btn {
        min-height: 52px;
        font-size: 16px;
    }

    #scrollTopBtn {
        bottom: 90px;
        right: 20px;
        width: 48px;
        height: 48px;
    }
    
    .vaccine-table-container th {
        padding: 12px 8px;
        font-size: 0.75em;
    }
    
    .vaccine-table-container {
        -webkit-overflow-scrolling: touch;
    }
    
    .print-controls {
        justify-content: center;
    }
    
    .print-controls button {
        flex: 1;
        min-width: 45%;
    }
}

/* PRINT STYLES */
@media print {
    .user-info-bar,
    .search-section,
    .action-btn,
    #scrollTopBtn,
    .collapse-indicator,
    .bottom-nav,
    .store-flag,
    .tooltip-icon,
    .table-reminder-btn,
    #loadingIndicator,
    .notification {
        display: none !important;
    }

    body {
        background: white;
        padding-top: 0;
        padding-bottom: 0;
    }

    .vaccine-section-content {
        display: block !important;
    }

    .vaccine-section {
        border: none;
        margin-bottom: 30px;
        page-break-inside: avoid;
        overflow: visible;
    }

    .section-header {
        background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
        color: white;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
        padding: 15px 20px;
        position: relative;
    }
    
    .vaccine-table-container th {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}