/* css/modules/mobile-dashboard.css */
/* MobileDashboard module styles - Mobile-optimized feature dashboard */

/* Modal Container */
.mobile-dashboard-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* On mobile, make modal background match the content to avoid black strips */
@media (max-width: 768px) {
    .mobile-dashboard-modal {
        background: var(--mobile-bg-primary, #FCFCFF);
    }
}

.mobile-dashboard-modal--visible {
    opacity: 1;
}

/* Modal Content */
.mobile-dashboard-modal__container {
    background: var(--mobile-bg-primary, #FCFCFF);
    width: 100%;
    max-width: 600px;
    /* Fallback for browsers that don't support modern viewport units */
    height: 90vh;
    /* iOS Safari/WKWebView compatible height - dvh accounts for dynamic toolbar */
    height: 90dvh;
    max-height: 800px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Header with Logo */
.mobile-dashboard-modal__header {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Account for iOS notch/status bar */
    padding: 24px 20px 16px 20px;
    padding-top: max(24px, calc(env(safe-area-inset-top, 0px) + 8px));
    background: var(--mobile-bg-secondary, #FFFFFF);
    border-bottom: 1px solid var(--mobile-border-color, rgba(189, 193, 198, 0.2));
    flex-shrink: 0;
    position: relative;
}

.mobile-dashboard-modal__logo {
    height: 60px;
    width: auto;
}

/* Navigation Bar */
.mobile-dashboard-modal__nav-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid var(--mobile-border-color, rgba(189, 193, 198, 0.2));
    background: var(--mobile-bg-secondary, #FFFFFF);
    flex-shrink: 0;
    min-height: 56px;
}

/* When header is hidden (sub-pages), nav-bar needs safe area padding */
/* This is controlled via JS by adding a class when navigating to sub-pages */
.mobile-dashboard-modal__nav-bar--with-safe-area {
    padding-top: max(12px, calc(env(safe-area-inset-top, 0px) + 8px));
}

.mobile-dashboard-modal__nav-title {
    font-size: 20px;
    font-weight: 600;
    color: #757575; /* Dark gray for greeting */
    margin: 0;
    text-align: center;
}

.mobile-dashboard-modal__nav-back {
    background: transparent;
    border: none;
    color: var(--mobile-accent-color, #FF9500);
    font-size: 16px;
    font-weight: 500;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.mobile-dashboard-modal__nav-spacer {
    width: 80px; /* Same width as back button to center title */
}

.mobile-dashboard-modal__nav-back:hover {
    background: rgba(255, 149, 0, 0.1);
}

.mobile-dashboard-modal__nav-back:active {
    background: rgba(255, 149, 0, 0.2);
}

/* Refresh Button - in header next to logo */
.mobile-dashboard-modal__nav-refresh {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.mobile-dashboard-modal__nav-refresh:hover {
    background: rgba(128, 128, 128, 0.1);
}

.mobile-dashboard-modal__nav-refresh:active {
    background: rgba(128, 128, 128, 0.2);
}

.mobile-dashboard-modal__nav-refresh--spinning {
    animation: refresh-spin 0.6s linear infinite;
}

@keyframes refresh-spin {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Content Area */
.mobile-dashboard-modal__content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}

/* Screens Container */
.mobile-dashboard-modal__screens {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Individual Screen */
.mobile-dashboard-modal__screen {
    display: none;
    padding: 20px;
    flex: 1;
}

.mobile-dashboard-modal__screen--active {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Menu List */
.mobile-dashboard-modal__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-dashboard-modal__section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Menu Items */
.mobile-dashboard-modal__menu-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: var(--mobile-bg-secondary, #FFFFFF);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 16px;
}

.mobile-dashboard-modal__menu-item:hover {
    background: var(--mobile-bg-hover, #F5F5F7);
    transform: translateX(4px);
}

.mobile-dashboard-modal__menu-item:active {
    background: var(--mobile-bg-active, #E8E8EA);
    transform: translateX(2px);
}

/* Removed --selected state for mobile (no d-pad navigation) */

.mobile-dashboard-modal__menu-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%); /* Make SVG inherit text color */
    opacity: 0.7;
}

.mobile-dashboard-modal__menu-label {
    flex: 1;
    font-size: 18px;
    font-weight: 500;
    color: var(--mobile-text-primary, #424242);
}

.mobile-dashboard-modal__menu-chevron {
    font-size: 24px;
    color: var(--mobile-text-tertiary, #8E8E93);
    flex-shrink: 0;
}

/* Placeholder Content */
.mobile-dashboard-modal__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    min-height: 400px;
}

.mobile-dashboard-modal__placeholder-icon {
    font-size: 80px;
    margin-bottom: 24px;
    opacity: 0.8;
}

.mobile-dashboard-modal__placeholder-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--mobile-text-primary, #424242);
    margin: 0 0 16px 0;
}

.mobile-dashboard-modal__placeholder-text {
    font-size: 18px;
    color: var(--mobile-text-secondary, #616161);
    line-height: 1.5;
    margin: 0 0 32px 0;
    max-width: 400px;
}

.mobile-dashboard-modal__placeholder-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    max-width: 400px;
}

.mobile-dashboard-modal__placeholder-feature {
    font-size: 16px;
    color: var(--mobile-text-secondary, #616161);
    padding: 8px 16px;
    background: var(--mobile-bg-secondary, #FFFFFF);
    border-radius: 8px;
    text-align: left;
}

/* Page Content */
.mobile-dashboard-modal__page-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-dashboard-modal__container {
        width: 100%;
        /* Use dvh for dynamic viewport height on iOS, with vh fallback */
        height: 100vh;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
    }

    .mobile-dashboard-modal__placeholder {
        padding: 20px;
        min-height: 300px;
    }

    .mobile-dashboard-modal__placeholder-icon {
        font-size: 60px;
    }

    .mobile-dashboard-modal__placeholder-title {
        font-size: 24px;
    }

    .mobile-dashboard-modal__placeholder-text {
        font-size: 16px;
    }
}

/* Dark Theme Support - Now uses theme-neutral --mobile-* variables defined in themes.css */
/* This media query remains for icon filter and other non-variable overrides */
@media (prefers-color-scheme: dark) {
    .mobile-dashboard-modal__menu-icon {
        filter: brightness(0) saturate(100%) invert(1); /* Invert for dark theme */
        opacity: 0.8;
    }
}

/* Dark theme class-based overrides for icon filter */
body.theme-dark .mobile-dashboard-modal__menu-icon,
body.theme-halloween-dark .mobile-dashboard-modal__menu-icon,
body.theme-christmas-dark .mobile-dashboard-modal__menu-icon {
    filter: brightness(0) saturate(100%) invert(1);
    opacity: 0.8;
}

/* ========================================
   MOBILE DASHBOARD FOOTER & LEGAL LINKS
   ======================================== */

.mobile-dashboard-modal__footer {
    margin-top: auto;
    padding: 20px 16px;
    border-top: 1px solid #E0E0E0;
    flex-shrink: 0;
}

/* Session action button (logout/unlink device) */
.mobile-dashboard-modal__session-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    margin-bottom: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-dashboard-modal__session-btn--neutral {
    background: rgba(142, 142, 147, 0.12);
    color: #636366;
}

.mobile-dashboard-modal__session-btn--neutral:active {
    background: rgba(142, 142, 147, 0.2);
    transform: scale(0.98);
}

.mobile-dashboard-modal__session-btn--primary {
    background: linear-gradient(135deg, #ffaa00, #ff8800);
    color: white;
    margin-bottom: 10px;
}

.mobile-dashboard-modal__session-btn--primary:active {
    background: linear-gradient(135deg, #e69900, #e67700);
    transform: scale(0.98);
}

.mobile-dashboard-modal__session-btn svg {
    flex-shrink: 0;
}

.mobile-dashboard-legal-links {
    text-align: center;
    font-size: 13px;
    color: #9E9E9E;
}

.mobile-dashboard-legal-links a {
    color: #9E9E9E;
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-dashboard-legal-links a:hover {
    color: #ffaa00;
}

.mobile-dashboard-legal-links a:active {
    color: #ffaa00;
}

.mobile-dashboard-legal-links .separator {
    margin: 0 8px;
    color: #9E9E9E;
}

.mobile-dashboard-version {
    text-align: center;
    font-size: 11px;
    color: #9E9E9E;
    margin: 8px 0 0 0;
}

/* Dark theme support for footer */
@media (prefers-color-scheme: dark) {
    .mobile-dashboard-modal__footer {
        border-top-color: #3A3A3A;
    }

    .mobile-dashboard-modal__session-btn--neutral {
        background: rgba(142, 142, 147, 0.15);
        color: #98989D;
    }

    .mobile-dashboard-modal__session-btn--neutral:active {
        background: rgba(142, 142, 147, 0.25);
    }

    .mobile-dashboard-legal-links {
        color: #B0B0B0;
    }

    .mobile-dashboard-legal-links a {
        color: #B0B0B0;
    }

    .mobile-dashboard-legal-links a:hover,
    .mobile-dashboard-legal-links a:active {
        color: #ffaa00;
    }

    .mobile-dashboard-legal-links .separator {
        color: #B0B0B0;
    }

    .mobile-dashboard-version {
        color: #B0B0B0;
    }
}

/* ==========================================================================
   Background Loading Spinner & Network Error Bar
   ========================================================================== */

/* Nav title container to hold title + spinner inline */
.mobile-dashboard-modal__nav-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
}

/* Background loading spinner (next to greeting on root menu) */
.mobile-dashboard-modal__loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(142, 142, 147, 0.3);
    border-top-color: #8E8E93;
    border-radius: 50%;
    animation: mobile-spinner-spin 0.8s linear infinite;
    flex-shrink: 0;
}

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

/* Network error bar */
.mobile-dashboard-modal__network-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FF6B6B;
    color: white;
    padding: 12px 16px;
    padding-bottom: max(12px, calc(env(safe-area-inset-bottom, 0px) + 8px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10001;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.mobile-dashboard-modal__network-bar--visible {
    transform: translateY(0);
}

.mobile-dashboard-modal__network-bar-text {
    font-size: 14px;
    font-weight: 500;
}

.mobile-dashboard-modal__network-bar-dismiss {
    background: transparent;
    border: none;
    color: white;
    font-size: 22px;
    font-weight: 300;
    padding: 4px 8px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.mobile-dashboard-modal__network-bar-dismiss:hover,
.mobile-dashboard-modal__network-bar-dismiss:active {
    opacity: 1;
}

/* Dark mode styles for spinner and network bar */
@media (prefers-color-scheme: dark) {
    .mobile-dashboard-modal__loading-spinner {
        border-color: rgba(142, 142, 147, 0.4);
        border-top-color: #AEAEB2;
    }

    .mobile-dashboard-modal__network-bar {
        background: #E53935;
    }
}

/* =============================================================================
   DASHBOARDS PAGE STYLES
   Mobile page for managing TV dashboard settings
   ============================================================================= */

.mobile-dashboards-page {
    padding: 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
}

/* Empty state */
.mobile-dashboards-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
}

.mobile-dashboards-empty__icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.mobile-dashboards-empty__icon-img {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    opacity: 0.5;
}

.mobile-dashboards-empty__title {
    font-size: 20px;
    font-weight: 600;
    color: var(--mobile-text-primary, #1C1C1E);
    margin: 0 0 12px 0;
}

.mobile-dashboards-empty__text {
    font-size: 15px;
    color: var(--mobile-text-secondary, #8E8E93);
    line-height: 1.5;
    margin: 0;
    max-width: 280px;
}

/* Loading state */
.mobile-dashboards-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    text-align: center;
}

.mobile-dashboards-loading__spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--mobile-border-color, rgba(189, 193, 198, 0.3));
    border-top-color: var(--mobile-accent-color, #007AFF);
    border-radius: 50%;
    animation: mobile-dashboards-spin 0.8s linear infinite;
    margin-bottom: 16px;
}

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

.mobile-dashboards-loading__text {
    font-size: 15px;
    color: var(--mobile-text-secondary, #8E8E93);
}

/* Device selector */
.mobile-dashboards-device-selector {
    margin-bottom: 24px;
}

.mobile-dashboards-device-row {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px;
    background: var(--mobile-bg-secondary, #FFFFFF);
    border: 1px solid var(--mobile-border-color, rgba(189, 193, 198, 0.3));
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

.mobile-dashboards-device-icon-img {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    opacity: 0.7;
    flex-shrink: 0;
}

.mobile-dashboards-device-name {
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    color: var(--mobile-text-primary, #1C1C1E);
    text-align: left;
    cursor: pointer;
}

.mobile-dashboards-device-edit-btn {
    background: none;
    border: none;
    padding: 4px;
    margin-left: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.mobile-dashboards-device-edit-btn:active {
    background: rgba(0, 0, 0, 0.1);
}

.mobile-dashboards-device-edit-icon {
    width: 18px;
    height: 18px;
    opacity: 0.6;
}

.mobile-dashboards-device-dropdown {
    font-size: 12px;
    color: var(--mobile-text-tertiary, #C7C7CC);
    cursor: pointer;
    padding: 4px 8px;
    margin-left: 8px;
}

/* Section styles */
.mobile-dashboards-section {
    background: var(--mobile-bg-secondary, #FFFFFF);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid var(--mobile-border-color, rgba(189, 193, 198, 0.2));
}

.mobile-dashboards-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mobile-dashboards-section__header:active {
    background: var(--mobile-bg-tertiary, #F2F2F7);
}

.mobile-dashboards-section__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--mobile-text-secondary, #8E8E93);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-dashboards-section__chevron {
    font-size: 14px;
    color: var(--mobile-text-tertiary, #C7C7CC);
    transition: transform 0.2s ease;
}

.mobile-dashboards-section.expanded .mobile-dashboards-section__chevron {
    transform: rotate(0deg);
}

/* Sync row inside section content */
.mobile-dashboards-sync-row {
    background: var(--mobile-bg-tertiary, rgba(242, 242, 247, 0.3));
}

.mobile-dashboards-sync-row .mobile-dashboards-setting-label {
    font-size: 14px;
    color: var(--mobile-text-secondary, #8E8E93);
}

.mobile-dashboards-section__content {
    padding: 0;
}

/* Setting item */
.mobile-dashboards-setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--mobile-border-color, rgba(189, 193, 198, 0.15));
    cursor: pointer;
    transition: background 0.2s ease;
}

.mobile-dashboards-setting-item:last-child {
    border-bottom: none;
}

.mobile-dashboards-setting-item:active {
    background: var(--mobile-bg-tertiary, #F2F2F7);
}

.mobile-dashboards-setting-item.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.mobile-dashboards-setting-label {
    font-size: 16px;
    color: var(--mobile-text-primary, #1C1C1E);
}

.mobile-dashboards-setting-value {
    font-size: 16px;
    color: var(--mobile-text-tertiary, #C7C7CC);
    display: flex;
    align-items: center;
    gap: 4px;
}

.mobile-dashboards-lock-icon {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.mobile-dashboards-setting-link {
    margin-top: 8px;
}

.mobile-dashboards-setting-link .mobile-dashboards-setting-label {
    color: var(--mobile-accent-color, #FF9500);
}

/* Toggle switch - matches chores page chore-field__toggle-switch style (orange, 44x24) */
.mobile-dashboards-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}

.mobile-dashboards-toggle input {
    position: absolute;
    opacity: 0;
    width: 44px;
    height: 24px;
    cursor: pointer;
    pointer-events: auto;
    margin: 0;
    z-index: 1;
}

.mobile-dashboards-toggle__slider {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background: #E0E0E0;
    border-radius: 12px;
    transition: background 0.3s;
    pointer-events: none;
}

.mobile-dashboards-toggle__slider:before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mobile-dashboards-toggle input:checked + .mobile-dashboards-toggle__slider {
    background: #ff9500;
}

.mobile-dashboards-toggle input:checked + .mobile-dashboards-toggle__slider:before {
    transform: translateX(20px);
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .mobile-dashboards-empty__title {
        color: #F5F5F7;
    }

    .mobile-dashboards-empty__text {
        color: #98989D;
    }

    .mobile-dashboards-device-button {
        background: #2C2C2E;
        border-color: #3A3A3C;
    }

    .mobile-dashboards-device-button:active {
        background: #3A3A3C;
    }

    .mobile-dashboards-device-name {
        color: #F5F5F7;
    }

    .mobile-dashboards-section {
        background: #2C2C2E;
        border-color: #3A3A3C;
    }

    .mobile-dashboards-section__header:active {
        background: #3A3A3C;
    }

    .mobile-dashboards-section__sync-row {
        background: rgba(58, 58, 60, 0.5);
    }

    .mobile-dashboards-setting-item:active {
        background: #3A3A3C;
    }

    .mobile-dashboards-setting-label {
        color: #F5F5F7;
    }

    .mobile-dashboards-toggle__slider {
        background: #39393D;
    }
}

/* Dark theme class-based overrides for icons */
body.theme-dark .mobile-dashboards-device-icon-img,
body.theme-halloween-dark .mobile-dashboards-device-icon-img,
body.theme-christmas-dark .mobile-dashboards-device-icon-img,
body.theme-dark .mobile-dashboards-device-edit-img,
body.theme-halloween-dark .mobile-dashboards-device-edit-img,
body.theme-christmas-dark .mobile-dashboards-device-edit-img,
body.theme-dark .mobile-dashboards-empty__icon-img,
body.theme-halloween-dark .mobile-dashboards-empty__icon-img,
body.theme-christmas-dark .mobile-dashboards-empty__icon-img {
    filter: brightness(0) saturate(100%) invert(1);
}

/* =============================================================================
   SELECTION MODAL STYLES
   iOS-style selection picker modal
   ============================================================================= */

.selection-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.selection-modal.visible {
    opacity: 1;
    pointer-events: auto;
}

.selection-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.selection-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    background: white;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    /* Ensure dialog content isn't hidden behind iOS home indicator */
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.selection-modal.visible .selection-modal__dialog {
    transform: translateY(0);
}

.selection-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #E0E0E0;
}

.selection-modal__title {
    font-size: 17px;
    font-weight: 600;
    color: #1C1C1E;
    margin: 0;
}

.selection-modal__close {
    background: none;
    border: none;
    font-size: 18px;
    color: #8E8E93;
    cursor: pointer;
    padding: 4px 8px;
}

.selection-modal__body {
    max-height: 60vh;
    overflow-y: auto;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
}

.selection-modal__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
}

.selection-modal__option:active {
    background: #F2F2F7;
}

.selection-modal__option--selected {
    background: rgba(255, 149, 0, 0.1);
}

.selection-modal__option-text {
    font-size: 17px;
    color: #1C1C1E;
}

.selection-modal__option--selected .selection-modal__option-text {
    color: #ff9500;
    font-weight: 600;
}

.selection-modal__option-check {
    color: #ff9500;
    font-size: 18px;
    font-weight: 600;
}

.selection-modal__footer {
    padding: 12px 20px 24px;
    border-top: 1px solid #E0E0E0;
}

.selection-modal__btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.selection-modal__btn:active {
    opacity: 0.7;
}

.selection-modal__btn--primary {
    background: #ff9500;
    color: white;
}

/* Time Picker Modal */
.time-picker-modal__body {
    padding: 24px 20px;
    display: flex;
    justify-content: center;
}

.time-picker-modal__input {
    font-size: 32px;
    font-weight: 500;
    color: #1C1C1E;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    padding: 16px 24px;
    text-align: center;
    background: #F9F9F9;
}

.time-picker-modal__input:focus {
    outline: none;
    border-color: #ff9500;
}

/* Dark mode for selection modal */
@media (prefers-color-scheme: dark) {
    .selection-modal__dialog {
        background: #2C2C2E;
    }

    .selection-modal__header {
        border-color: #3A3A3C;
    }

    .selection-modal__title {
        color: #F5F5F7;
    }

    .selection-modal__close {
        color: #98989D;
    }

    .selection-modal__option:active {
        background: #3A3A3C;
    }

    .selection-modal__option--selected {
        background: rgba(255, 149, 0, 0.15);
    }

    .selection-modal__option-text {
        color: #F5F5F7;
    }

    .selection-modal__footer {
        border-color: #3A3A3C;
    }

    .time-picker-modal__input {
        background: #3A3A3C;
        border-color: #4A4A4C;
        color: #F5F5F7;
    }
}
