/**
 * Mpox Smart - Main Stylesheet
 * A mobile-first health monitoring application
 */

/* ===============================================
   CSS Variables & Theme
   =============================================== */
:root {
    /* Primary Colors */
    --color-primary: #F5B301;
    --color-primary-dark: #D99E01;
    --color-primary-light: #FFD54F;
    
    /* Secondary Colors */
    --color-secondary: #1A1A1A;
    --color-secondary-light: #333333;
    
    /* Background Colors */
    --color-bg: #FFFFFF;
    --color-bg-light: #F8F9FA;
    --color-bg-dark: #1A1A1A;
    
    /* Text Colors */
    --color-text: #1A1A1A;
    --color-text-light: #666666;
    --color-text-muted: #999999;
    --color-text-inverse: #FFFFFF;
    
    /* Status Colors */
    --color-success: #28A745;
    --color-warning: #FFC107;
    --color-danger: #DC3545;
    --color-info: #17A2B8;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;
    
    /* Typography */
    --font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-md: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-xxl: 32px;
    --font-size-xxxl: 40px;
    
    /* Navbar Height */
    --navbar-height: 70px;
    
    /* Safe Areas (for notched devices) */
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

/* ===============================================
   Reset & Base Styles
   =============================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg-dark);
    color: var(--color-text);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
}

/* ===============================================
   App Container
   =============================================== */
.app-container {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    background-color: var(--color-bg);
    display: flex;
    flex-direction: column;
}

#app-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: var(--navbar-height);
}

#app-content.no-navbar {
    padding-bottom: 0;
}

/* ===============================================
   Navigation Bar
   =============================================== */
.navbar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: var(--navbar-height);
    background-color: var(--color-primary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    padding-bottom: calc(var(--space-sm) + var(--safe-area-bottom));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.navbar.hidden {
    display: none;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    color: var(--color-secondary);
    min-width: 60px;
}

.nav-item:hover,
.nav-item:active {
    background-color: rgba(0, 0, 0, 0.1);
}

.nav-item.active {
    color: var(--color-secondary);
}

.nav-item.active .nav-icon {
    stroke-width: 2.5;
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
}

.nav-label {
    font-size: var(--font-size-xs);
    font-weight: 600;
}

/* ===============================================
   Page Styles
   =============================================== */
.page {
    min-height: 100%;
    background-color: var(--color-bg);
    padding: var(--space-lg);
    animation: fadeIn 0.3s ease;
}

.page-header {
    margin-bottom: var(--space-lg);
}

.page-title {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.page-subtitle {
    font-size: var(--font-size-md);
    color: var(--color-text-light);
}

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

/* ===============================================
   Splash Screen
   =============================================== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.splash-logo {
    font-size: var(--font-size-xxxl);
    font-weight: 800;
    color: var(--color-secondary);
    margin-bottom: var(--space-xxl);
}

.splash-loader {
    display: flex;
    gap: 8px;
}

.splash-loader .dot {
    width: 12px;
    height: 12px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    animation: bounce 0.6s ease-in-out infinite;
}

.splash-loader .dot:nth-child(2) { animation-delay: 0.1s; }
.splash-loader .dot:nth-child(3) { animation-delay: 0.2s; }
.splash-loader .dot:nth-child(4) { animation-delay: 0.3s; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===============================================
   Language Selection
   =============================================== */
.language-select-page {
    padding: var(--space-xl);
}

.language-title {
    font-size: var(--font-size-xxl);
    font-weight: 800;
    margin-bottom: var(--space-xs);
}

.language-subtitle {
    font-size: var(--font-size-md);
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
}

.language-dropdown {
    margin-bottom: var(--space-md);
}

.language-dropdown .ui.dropdown {
    width: 100%;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-sm);
}

.language-hint {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* ===============================================
   Onboarding Screens
   =============================================== */
.onboarding-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    padding: var(--space-xl);
    background-color: var(--color-bg);
}

.onboarding-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.onboarding-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.onboarding-title .highlight {
    color: var(--color-primary);
}

.onboarding-image {
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: var(--space-lg) 0;
}

.onboarding-image svg {
    width: 100%;
    height: auto;
}

.onboarding-text {
    font-size: var(--font-size-md);
    color: var(--color-text);
    max-width: 300px;
    line-height: 1.6;
}

.onboarding-text .highlight {
    color: var(--color-primary);
    font-weight: 600;
}

.onboarding-warning {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: var(--space-lg) 0;
}

.warning-icon {
    width: 120px;
    height: 120px;
    margin-bottom: var(--space-lg);
}

.warning-icon svg {
    width: 100%;
    height: 100%;
}

.onboarding-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
}

/* ===============================================
   Buttons
   =============================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background-color: rgba(245, 179, 1, 0.1);
}

.btn-text {
    background-color: transparent;
    color: var(--color-primary);
    padding: var(--space-sm) var(--space-md);
}

.btn-text:hover {
    background-color: rgba(245, 179, 1, 0.1);
}

.btn-icon {
    padding: var(--space-md);
    border-radius: var(--radius-sm);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

.btn-lg {
    padding: var(--space-md) var(--space-xxl);
    font-size: var(--font-size-lg);
}

.btn-block {
    width: 100%;
}

.btn-start {
    background: linear-gradient(135deg, #FFB347 0%, #F5B301 50%, #E6A800 100%);
    color: white;
    font-size: var(--font-size-xxl);
    font-weight: 800;
    padding: var(--space-lg) var(--space-xxl);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(245, 179, 1, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.btn-start::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-start:hover::before {
    width: 300px;
    height: 300px;
}

/* ===============================================
   Cards
   =============================================== */
.card {
    background-color: var(--color-primary);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    color: var(--color-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.card-title {
    font-size: var(--font-size-lg);
    font-weight: 800;
    margin-bottom: var(--space-sm);
}

.card-text {
    font-size: var(--font-size-sm);
}

.card-text strong {
    font-weight: 700;
}

/* ===============================================
   Home Page
   =============================================== */
.home-page {
    padding-bottom: calc(var(--navbar-height) + var(--space-lg));
}

.symptoms-card {
    background-color: var(--color-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

.symptoms-header {
    padding: var(--space-lg);
}

.symptoms-header h2 {
    font-size: var(--font-size-xl);
    font-weight: 800;
}

.symptoms-body {
    background-color: var(--color-primary);
    padding: var(--space-lg);
    display: flex;
    gap: var(--space-lg);
}

.symptoms-illustration {
    flex-shrink: 0;
    width: 80px;
}

.symptoms-illustration svg {
    width: 100%;
    height: auto;
}

.symptoms-list h3 {
    font-size: var(--font-size-md);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.symptoms-list h3 .highlight {
    color: #DC3545;
}

.symptoms-list ul {
    list-style: disc;
    padding-left: var(--space-lg);
    font-size: var(--font-size-sm);
}

.symptoms-list li {
    margin-bottom: var(--space-xs);
}

.home-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.home-actions .btn {
    flex: 1;
}

/* ===============================================
   Advice Pages
   =============================================== */
.advice-page {
    padding-bottom: var(--space-xl);
}

.advice-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.advice-list {
    margin-top: var(--space-lg);
}

.advice-list h2 {
    font-size: var(--font-size-xl);
    font-weight: 800;
    margin-bottom: var(--space-sm);
}

.advice-list h3 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.advice-list ul {
    list-style: disc;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.advice-list li {
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.advice-list strong {
    font-weight: 700;
}

.advice-footer {
    font-weight: 700;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.advice-section {
    margin-bottom: var(--space-xl);
}

.advice-section h3 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.advice-section p {
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.advice-section .highlight {
    color: #DC3545;
    font-weight: 600;
}

/* ===============================================
   Capture Page
   =============================================== */
.capture-page {
    padding: var(--space-lg);
    padding-bottom: calc(var(--navbar-height) + var(--space-lg));
}

.capture-area {
    aspect-ratio: 1;
    background-color: var(--color-bg-light);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: var(--space-lg) 0;
    position: relative;
    overflow: hidden;
}

.capture-frame {
    width: 70%;
    aspect-ratio: 1;
    position: relative;
}

.capture-frame::before,
.capture-frame::after,
.capture-frame .corner-bl,
.capture-frame .corner-br {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 4px solid var(--color-secondary);
}

.capture-frame::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
    border-radius: var(--radius-sm) 0 0 0;
}

.capture-frame::after {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
    border-radius: 0 var(--radius-sm) 0 0;
}

.capture-frame .corner-bl {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 var(--radius-sm);
}

.capture-frame .corner-br {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
    border-radius: 0 0 var(--radius-sm) 0;
}

.capture-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 4px;
    background-color: var(--color-secondary);
    border-radius: var(--radius-full);
}

.capture-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.capture-controls {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
}

.capture-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.capture-btn-primary {
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

.capture-btn-secondary {
    background-color: transparent;
    color: #DC3545;
    border: 2px solid #DC3545;
}

.capture-btn svg {
    width: 28px;
    height: 28px;
}

/* Hidden file input */
#image-input {
    display: none;
}

/* ===============================================
   Metadata Collection
   =============================================== */
.metadata-page {
    padding: var(--space-xl);
}

.metadata-title {
    font-size: var(--font-size-xxl);
    font-weight: 800;
    margin-bottom: var(--space-xs);
}

.metadata-subtitle {
    font-size: var(--font-size-md);
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
}

.metadata-form {
    margin-bottom: var(--space-xl);
}

.metadata-label {
    font-size: var(--font-size-md);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    display: block;
}

.metadata-dropdown {
    margin-bottom: var(--space-md);
}

.metadata-dropdown .ui.dropdown {
    width: 100%;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-sm);
}

.metadata-hint {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.metadata-footer {
    display: flex;
    justify-content: flex-end;
}

/* ===============================================
   Scanning Animation
   =============================================== */
.scanning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.scanning-frame {
    width: 200px;
    height: 200px;
    position: relative;
    margin-bottom: var(--space-lg);
}

.scanning-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.scanning-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    animation: scanLine 2s ease-in-out infinite;
}

@keyframes scanLine {
    0%, 100% { top: 0; }
    50% { top: calc(100% - 4px); }
}

.scanning-text {
    font-size: var(--font-size-md);
    color: var(--color-text-light);
}

/* ===============================================
   Results Page
   =============================================== */
.result-page {
    padding: var(--space-lg);
    padding-bottom: calc(var(--navbar-height) + var(--space-lg));
    text-align: center;
}

.result-title {
    font-size: var(--font-size-xxl);
    font-weight: 800;
    margin-bottom: var(--space-lg);
}

.result-title.positive {
    color: var(--color-danger);
}

.result-title.negative {
    color: var(--color-success);
}

.result-image {
    width: 100%;
    max-width: 280px;
    border-radius: var(--radius-lg);
    margin: 0 auto var(--space-lg);
    display: block;
}

.result-text {
    font-size: var(--font-size-md);
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
}

.result-scores {
    background-color: var(--color-bg-light);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    text-align: left;
}

.result-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.result-score:last-child {
    margin-bottom: 0;
}

.result-score-name {
    font-weight: 600;
}

.result-score-value {
    font-weight: 700;
    color: var(--color-primary);
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* ===============================================
   History Page
   =============================================== */
.history-page {
    padding: var(--space-lg);
    padding-bottom: calc(var(--navbar-height) + var(--space-lg));
}

.history-table {
    width: 100%;
}

.history-table .image-cell {
    width: 80px;
}

.history-table .image-cell img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.history-empty {
    text-align: center;
    padding: var(--space-xxl);
    color: var(--color-text-muted);
}

.history-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    opacity: 0.5;
}

/* DataTables Customization */
.dataTables_wrapper {
    padding: 0;
}

.dataTables_wrapper .ui.table {
    margin-top: var(--space-md);
}

.dataTables_length,
.dataTables_filter {
    margin-bottom: var(--space-md);
}

/* ===============================================
   Settings Page
   =============================================== */
.settings-page {
    padding: var(--space-lg);
    padding-bottom: calc(var(--navbar-height) + var(--space-lg));
}

.settings-section {
    margin-bottom: var(--space-xl);
}

.settings-section-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background-color: var(--color-bg-light);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.settings-item:hover {
    background-color: rgba(245, 179, 1, 0.1);
}

.settings-item-info {
    flex: 1;
}

.settings-item-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.settings-item-desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.settings-item-arrow {
    color: var(--color-text-muted);
}

.settings-item-arrow svg {
    width: 20px;
    height: 20px;
}

.settings-about {
    text-align: center;
    padding: var(--space-xl);
    color: var(--color-text-muted);
}

.settings-about p {
    margin-bottom: var(--space-sm);
}

/* ===============================================
   Tutorial Modal
   =============================================== */
.tutorial-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: var(--space-lg);
}

.tutorial-content {
    background-color: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    max-width: 320px;
    width: 100%;
    position: relative;
}

.tutorial-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tutorial-close:hover {
    background-color: var(--color-primary);
}

.tutorial-close svg {
    width: 16px;
    height: 16px;
}

.tutorial-icon {
    width: 80px;
    height: 80px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
}

.tutorial-icon svg {
    width: 40px;
    height: 40px;
    color: var(--color-secondary);
}

.tutorial-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.tutorial-text {
    font-size: var(--font-size-md);
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
}

/* ===============================================
   Utility Classes
   =============================================== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* ===============================================
   Fomantic UI Overrides
   =============================================== */
.ui.dropdown {
    font-family: var(--font-family);
}

.ui.dropdown .menu {
    border-radius: var(--radius-sm);
}

.ui.dropdown .menu > .item {
    padding: var(--space-md) !important;
}

.ui.dropdown .menu > .item:hover {
    background-color: rgba(245, 179, 1, 0.1) !important;
}

.ui.dropdown .menu > .item.active {
    background-color: rgba(245, 179, 1, 0.2) !important;
    font-weight: 600;
}

.ui.selection.dropdown {
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-sm);
    min-height: 48px;
    padding: var(--space-sm) var(--space-md);
}

.ui.selection.dropdown:focus,
.ui.selection.dropdown.active {
    border-color: var(--color-primary-dark);
}

.ui.selection.dropdown > .dropdown.icon {
    top: calc(50% - 6px);
}

/* ===============================================
   Responsive Adjustments
   =============================================== */
@media (max-width: 380px) {
    :root {
        --font-size-xxxl: 32px;
        --font-size-xxl: 24px;
        --font-size-xl: 20px;
    }
    
    .page {
        padding: var(--space-md);
    }
    
    .navbar {
        padding: var(--space-xs) var(--space-sm);
    }
    
    .nav-item {
        min-width: 50px;
    }
}

/* ===============================================
   Print Styles (if needed)
   =============================================== */
@media print {
    .navbar,
    .btn {
        display: none !important;
    }
    
    #app-content {
        padding-bottom: 0;
    }
}
