/* CSS variables for the color palette and UI system */
:root {
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --shadow-premium: 0 10px 35px -12px rgba(2, 12, 27, 0.8);
    --glass-blur: blur(14px);
}

/* THEME 1: זהב קיסרי (Default) */
body.theme-imperial {
    --bg-main: #060F1E;
    --bg-card: rgba(13, 27, 49, 0.85);
    --bg-card-hover: rgba(18, 38, 68, 0.95);
    --color-gold: #D4AF37;
    --color-gold-light: #FCECB5;
    --color-cream: #F5F2EB;
    --color-text-dim: #8BA0B8;
    --color-white: #FFFFFF;
    --color-red: #E26E55;
    --color-red-bg: rgba(226, 110, 85, 0.15);
    --color-green: #4FB077;
    --color-green-bg: rgba(79, 176, 119, 0.15);
    --border-color: rgba(212, 175, 55, 0.25);
    --bg-gradient: radial-gradient(circle at top right, #0F2A4A 0%, #060F1E 80%);
    --color-glow-1: #D4AF37;
    --color-glow-2: #0F2A4A;
}

/* THEME 2: טבע אלפיני (Alpine Green) */
body.theme-alpine {
    --bg-main: #051A0E;
    --bg-card: rgba(12, 40, 24, 0.85);
    --bg-card-hover: rgba(18, 56, 34, 0.95);
    --color-gold: #E5C158;
    --color-gold-light: #FCECB5;
    --color-cream: #F5F7F6;
    --color-text-dim: #99B2A3;
    --color-white: #FFFFFF;
    --color-red: #E87A5D;
    --color-red-bg: rgba(232, 122, 93, 0.15);
    --color-green: #58C988;
    --color-green-bg: rgba(88, 201, 136, 0.15);
    --border-color: rgba(229, 193, 88, 0.25);
    --bg-gradient: radial-gradient(circle at top right, #134226 0%, #051A0E 80%);
    --color-glow-1: #58C988;
    --color-glow-2: #134226;
}

/* THEME 3: שקיעה בדנובה (Danube Sunset) */
body.theme-sunset {
    --bg-main: #13081A;
    --bg-card: rgba(33, 14, 43, 0.85);
    --bg-card-hover: rgba(46, 20, 60, 0.95);
    --color-gold: #FF8C42;
    --color-gold-light: #FFB380;
    --color-cream: #FDFBFC;
    --color-text-dim: #A890AE;
    --color-white: #FFFFFF;
    --color-red: #EC6A52;
    --color-red-bg: rgba(236, 106, 82, 0.15);
    --color-green: #3FAF7C;
    --color-green-bg: rgba(63, 175, 124, 0.15);
    --border-color: rgba(255, 140, 66, 0.25);
    --bg-gradient: radial-gradient(circle at top right, #391949 0%, #13081A 80%);
    --color-glow-1: #FF8C42;
    --color-glow-2: #FF4285;
}

/* Glowing Background Orbs */
.bg-glow-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    animation: drift 20s infinite alternate ease-in-out;
    transition: background-color var(--transition-normal);
}
.orb-1 {
    top: -10%;
    right: -10%;
    width: 300px;
    height: 300px;
    background-color: var(--color-glow-1);
}
.orb-2 {
    bottom: 10%;
    left: -10%;
    width: 350px;
    height: 350px;
    background-color: var(--color-glow-2);
    animation-delay: -5s;
}
@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(30px, 40px) scale(1.15);
    }
}

/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Rubik', system-ui, -apple-system, sans-serif;
    background: var(--bg-main);
    color: var(--color-cream);
    direction: rtl;
    line-height: 1.6;
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    transition: background-color var(--transition-normal);
}

/* Main Container Layout (Mobile First Viewport Lock) */
.app-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 480px;
    height: 100vh;
    height: -webkit-fill-available;
    margin: 0 auto;
    background: var(--bg-gradient);
    position: relative;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.9);
    overflow: hidden;
    transition: background var(--transition-normal);
}

/* Header Styles */
.app-header {
    background: linear-gradient(180deg, rgba(6, 15, 30, 0.95) 0%, rgba(6, 15, 30, 0.8) 100%);
    padding: 18px 20px 12px 20px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    z-index: 10;
    backdrop-filter: var(--glass-blur);
    flex-shrink: 0;
    transition: border-bottom var(--transition-normal);
}

.header-logo {
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.gold-text {
    color: var(--color-gold);
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
    transition: color var(--transition-normal);
}

.cream-text {
    color: var(--color-cream);
}

.header-subtitle {
    font-size: 0.82rem;
    color: var(--color-text-dim);
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: color var(--transition-normal);
}

/* Scrollable Main Content Area */
.app-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 16px 85px 16px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.app-content::-webkit-scrollbar {
    width: 4px;
}
.app-content::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.25);
    border-radius: 4px;
}

/* Card Styling (Premium Glassmorphism) */
.card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-md);
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform var(--transition-fast), background var(--transition-fast), border var(--transition-normal);
}

.card:active {
    transform: scale(0.995);
}

.card h3 {
    color: var(--color-gold);
    font-size: 1.25rem;
    margin-bottom: 8px;
    font-weight: 800;
}

.card h4 {
    color: var(--color-gold-light);
    font-size: 1.12rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.card h5 {
    color: var(--color-gold-light);
    font-size: 1.02rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.card p {
    font-size: 0.94rem;
    color: var(--color-cream);
    opacity: 0.95;
    font-weight: 400;
}

/* Special Card Borders */
.gold-border {
    border: 1px solid var(--color-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.12);
}

.red-border {
    border: 1px solid rgba(226, 110, 85, 0.5);
    background: rgba(226, 110, 85, 0.05);
}

.green-border {
    border: 1px solid rgba(79, 176, 119, 0.5);
    background: rgba(79, 176, 119, 0.05);
}

/* Tab Panel Switching System */
@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-panel {
    display: none;
    opacity: 0;
}

.tab-panel.active {
    display: block;
    opacity: 1;
    animation: tabFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* TAB 1: Dashboard Elements */
/* Daily Briefing Card */
.briefing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}

.briefing-header h4 {
    margin-bottom: 0;
}

.brief-audio-btn {
    background: var(--color-gold);
    color: var(--bg-main);
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.brief-audio-btn:active {
    transform: scale(0.95);
    background-color: var(--color-gold-light);
}

.briefing-content {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--color-cream);
    white-space: pre-line;
}

/* Flight Countdown Widget */
.countdown-timer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 15px 0;
    padding: 14px 6px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.timer-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 22%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 2px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.timer-segment span {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-gold);
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.timer-segment small {
    font-size: 0.72rem;
    color: var(--color-text-dim);
    margin-top: 4px;
    font-weight: 600;
}

.countdown-details {
    font-size: 0.82rem;
    color: var(--color-text-dim);
    text-align: center;
    font-weight: 600;
}

/* Next Up Card Styling */
.next-up-card {
    position: relative;
    overflow: hidden;
}

.card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--color-gold);
    color: var(--bg-main);
    font-size: 0.68rem;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
}

.time-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.16);
    color: var(--color-gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
    font-size: 0.86rem;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 30px;
    margin: 6px 0 10px 0;
}

/* Weather Forecast Card */
.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.weather-header h4 {
    margin-bottom: 0;
}

.weather-temp {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--color-gold);
}

.weather-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.weather-info {
    font-size: 0.94rem;
}

.weather-label {
    color: var(--color-text-dim);
    font-weight: 600;
}

.weather-val {
    font-weight: 600;
}

.weather-tip {
    font-size: 0.84rem;
    margin-top: 8px;
    color: var(--color-cream);
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 12px;
    border-radius: var(--border-radius-sm);
    border-right: 3px solid var(--color-gold);
}

/* Zmanim (Halachic Times) Card */
.zmanim-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.zmanim-header h4 {
    margin-bottom: 0;
}

.zmanim-date {
    font-size: 0.82rem;
    color: var(--color-gold);
    font-weight: 700;
}

.zmanim-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.zman-item {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius-sm);
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
}

.zman-name {
    font-size: 0.74rem;
    color: var(--color-text-dim);
    font-weight: 600;
}

.zman-time {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-cream);
    margin-top: 2px;
}

.zman-item.highlight-red {
    border: 1px solid rgba(226, 110, 85, 0.3);
    background: rgba(226, 110, 85, 0.06);
}

.zman-item.highlight-red .zman-time {
    color: var(--color-red);
}

.zmanim-note {
    font-size: 0.78rem;
    color: var(--color-text-dim);
    margin-top: 12px;
    text-align: center;
    font-style: italic;
}

/* TAB 2: Itinerary Days selector */
.day-selector-container {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--bg-main);
    padding: 4px 0 14px 0;
    margin-bottom: 10px;
    transition: background-color var(--transition-normal);
}

.day-selector {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.day-selector::-webkit-scrollbar {
    display: none;
}

.day-btn {
    flex: 1;
    min-width: 68px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-sm);
    color: var(--color-text-dim);
    padding: 8px 4px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: all var(--transition-fast);
}

.day-btn.active {
    background: var(--color-gold);
    color: var(--bg-main);
    border-color: var(--color-gold);
    box-shadow: 0 4px 12px rgba(229, 193, 88, 0.25);
}

.day-btn small {
    font-size: 0.68rem;
    font-weight: 500;
    opacity: 0.8;
}

/* Timeline Layout for Itinerary details */
.timeline {
    position: relative;
    padding-right: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 5px;
    right: 7px;
    width: 2px;
    height: calc(100% - 20px);
    background: rgba(229, 193, 88, 0.2);
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
}

.timeline-dot {
    position: absolute;
    top: 4px;
    right: -19px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 3px solid var(--color-gold);
    z-index: 2;
    transition: background var(--transition-fast);
}

.timeline-item.completed .timeline-dot {
    background: var(--color-gold);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius-md);
    padding: 14px 16px;
    box-shadow: var(--shadow-premium);
    position: relative;
}

.timeline-item.completed .timeline-content {
    opacity: 0.65;
    border-color: rgba(79, 176, 119, 0.15);
}

.timeline-time-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.timeline-time {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--color-gold-light);
}

.timeline-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--color-text-dim);
    cursor: pointer;
}

.timeline-checkbox-label input {
    width: 15px;
    height: 15px;
    accent-color: var(--color-gold);
    cursor: pointer;
}

.timeline-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-cream);
    margin-bottom: 6px;
}

.timeline-item.completed .timeline-title {
    text-decoration: line-through;
}

.timeline-desc {
    font-size: 0.86rem;
    color: var(--color-cream);
    opacity: 0.85;
}

/* Custom Checkbox Design */
.timeline-checkbox-label input, .packing-item input {
    appearance: none;
    -webkit-appearance: none;
    width: 17px;
    height: 17px;
    border: 2px solid var(--color-gold);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    transition: all var(--transition-fast);
    display: inline-block;
    vertical-align: middle;
}

.timeline-checkbox-label input:checked, .packing-item input:checked {
    background: var(--color-gold);
    border-color: var(--color-gold);
}

.timeline-checkbox-label input:checked::after, .packing-item input:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--bg-main) !important;
    font-size: 0.72rem;
    font-weight: 900;
}

.timeline-warning-note {
    background: rgba(226, 110, 85, 0.08);
    border-right: 3px solid var(--color-red);
    padding: 8px 10px;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    margin-top: 8px;
    color: var(--color-cream);
}

.timeline-gold-note {
    background: rgba(229, 193, 88, 0.08);
    border-right: 3px solid var(--color-gold);
    padding: 8px 10px;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    margin-top: 8px;
    color: var(--color-cream);
}

.itinerary-day-highlight {
    background: rgba(229, 193, 88, 0.08);
    border: 1px solid rgba(229, 193, 88, 0.25);
    border-radius: var(--border-radius-md);
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 0.86rem;
}

.itinerary-day-highlight strong {
    color: var(--color-gold);
}

/* TAB 3: Kosher Directory */
.search-filter-container {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--bg-main);
    padding: 4px 0 14px 0;
    margin-bottom: 12px;
    transition: background-color var(--transition-normal);
}

.category-filters {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.filter-btn {
    flex: 1;
    white-space: nowrap;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    color: var(--color-text-dim);
    padding: 8px 14px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn.active {
    background: var(--color-gold);
    color: var(--bg-main);
    border-color: var(--color-gold);
}

/* Kosher place card layout */
.kosher-place-card {
    position: relative;
    padding: 16px;
}

.place-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
}

.place-badge.meat {
    background: var(--color-red-bg);
    color: var(--color-red);
    border: 1px solid rgba(226, 110, 85, 0.3);
}

.place-badge.dairy {
    background: var(--color-green-bg);
    color: var(--color-green);
    border: 1px solid rgba(79, 176, 119, 0.3);
}

.place-badge.supermarket {
    background: rgba(229, 193, 88, 0.15);
    color: var(--color-gold);
    border: 1px solid rgba(229, 193, 88, 0.3);
}

.place-header h4 {
    margin-bottom: 4px;
    padding-left: 70px;
}

.place-dist {
    font-size: 0.78rem;
    color: var(--color-gold);
    font-weight: 700;
    margin-bottom: 10px;
    display: inline-block;
    background: rgba(229, 193, 88, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
}

.place-detail {
    font-size: 0.84rem;
    margin-bottom: 4px;
}

.place-detail strong {
    color: var(--color-text-dim);
}

.place-spec {
    font-size: 0.84rem;
    margin-top: 8px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--border-radius-sm);
    color: var(--color-cream);
    opacity: 0.95;
    border-right: 3.5px solid var(--color-gold);
}

.place-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.place-nav-btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: var(--color-gold);
    color: var(--bg-main);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 10px;
    border-radius: var(--border-radius-sm);
    transition: background var(--transition-fast);
}

.place-nav-btn:active {
    background: var(--color-gold-light);
}

/* TAB 4: Vienna Sites Guide Tab */
.guide-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guide-card {
    border-right: 4px solid var(--color-gold);
}

.guide-badge {
    display: inline-block;
    background: rgba(229, 193, 88, 0.12);
    color: var(--color-gold);
    border: 1px solid rgba(229, 193, 88, 0.25);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.guide-card h4 {
    margin-bottom: 4px;
    color: var(--color-white);
}

.guide-desc {
    font-size: 0.88rem !important;
    line-height: 1.55;
    opacity: 0.9;
    margin-bottom: 8px;
}

.guide-tip-box {
    background: rgba(229, 193, 88, 0.06);
    border: 1px solid rgba(229, 193, 88, 0.2);
    border-radius: var(--border-radius-sm);
    padding: 8px 10px;
    font-size: 0.8rem;
    margin: 8px 0;
    color: var(--color-cream);
}

.guide-link-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--color-gold-light);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.guide-link-btn:active {
    background: rgba(229, 193, 88, 0.15);
    border-color: var(--color-gold);
}

/* TAB 5: Docs & Tools */
/* Theme Selector styles */
.theme-switcher-card .theme-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.theme-selector-btn {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-cream);
    border-radius: var(--border-radius-sm);
    padding: 10px 4px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all var(--transition-fast);
}

.theme-selector-btn.active {
    border-color: var(--color-gold);
    background: rgba(229, 193, 88, 0.12);
}

.theme-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.imperial-dot { background-color: #D4AF37; }
.alpine-dot { background-color: #58C988; }
.sunset-dot { background-color: #FF8C42; }

/* Currency Converter inputs */
.converter-card {
    padding: 20px;
}

.converter-rate {
    font-size: 0.75rem;
    color: var(--color-text-dim);
    margin-bottom: 12px;
    text-align: center;
    font-weight: 500;
}

.converter-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-text-dim);
}

.input-group input {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-sm);
    color: var(--color-white);
    padding: 12px;
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 800;
    text-align: center;
    width: 100%;
}

.input-group input:focus {
    outline: none;
    border-color: var(--color-gold);
}

.converter-arrows {
    font-size: 1.4rem;
    color: var(--color-gold);
    margin-top: 20px;
}

/* Info block layouts inside directories */
.info-block {
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--border-radius-sm);
    border-right: 2.5px solid var(--color-gold);
}

.info-block h6 {
    color: var(--color-gold-light);
    font-size: 0.88rem;
    margin-bottom: 4px;
    font-weight: 700;
}

.info-block p {
    font-size: 0.82rem;
    line-height: 1.5;
}

.info-block ul {
    margin-top: 6px;
    padding-right: 14px;
}

.info-block li {
    font-size: 0.82rem;
    margin-bottom: 4px;
}

/* Reminders Card */
.reminder-item {
    display: flex;
    flex-direction: column;
    background: rgba(226, 110, 85, 0.05);
    border: 1px solid rgba(226, 110, 85, 0.2);
    border-radius: var(--border-radius-sm);
    padding: 10px 12px;
    margin-bottom: 10px;
}

.reminder-item:last-child {
    margin-bottom: 0;
}

.reminder-status {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--color-red);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.reminder-text {
    font-size: 0.82rem;
    color: var(--color-cream);
}

/* Docs Blocks */
.doc-block h5 {
    color: var(--color-gold);
    margin-bottom: 6px;
}

.doc-block p {
    font-size: 0.84rem;
    margin-bottom: 4px;
}

.highlight-code {
    font-family: monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.docs-metadata-card hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 14px 0;
}

/* Packing Checklist styling */
.packing-category {
    margin-bottom: 16px;
}

.packing-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 0.86rem;
    color: var(--color-gold);
    font-weight: 700;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 3px;
    transition: border-bottom var(--transition-normal);
}

.packing-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.15);
    padding: 10px 12px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 6px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.packing-item input {
    width: 17px;
    height: 17px;
    accent-color: var(--color-gold);
    cursor: pointer;
}

.packing-item-text {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-cream);
}

.packing-item.checked {
    opacity: 0.5;
}

.packing-item.checked .packing-item-text {
    text-decoration: line-through;
}

/* Contacts card and action buttons */
.contact-item {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-sm);
    padding: 12px;
    margin-bottom: 12px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-gold-light);
    margin-bottom: 4px;
}

.contact-details {
    font-size: 0.78rem;
    color: var(--color-text-dim);
    margin-bottom: 10px;
}

.contact-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.contact-btn {
    flex: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--color-cream);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
}

.contact-btn:active {
    opacity: 0.8;
}

.contact-btn.phone-btn {
    background: rgba(78, 175, 118, 0.12);
    border-color: rgba(78, 175, 118, 0.3);
    color: var(--color-green);
}

.contact-btn.wa-btn {
    background: rgba(78, 175, 118, 0.2);
    border-color: rgba(78, 175, 118, 0.4);
    color: var(--color-green);
}

.contact-btn.mail-btn {
    background: rgba(229, 193, 88, 0.12);
    border-color: rgba(229, 193, 88, 0.3);
    color: var(--color-gold);
}

.contact-btn.link-btn {
    background: rgba(229, 193, 88, 0.12);
    border-color: rgba(229, 193, 88, 0.3);
    color: var(--color-gold);
}

.contact-btn.alert-btn {
    background: var(--color-red-bg);
    border-color: rgba(226, 110, 85, 0.3);
    color: var(--color-red);
}

/* Bottom Navigation Bar Styles */
.app-nav {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    width: calc(100% - 24px);
    height: 64px;
    background: rgba(13, 27, 49, 0.85);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    transition: border-color var(--transition-normal);
}

/* Nav background overrides per theme */
body.theme-imperial .app-nav {
    background: linear-gradient(135deg, rgba(13, 27, 49, 0.85) 0%, rgba(6, 15, 30, 0.95) 100%);
    border-color: rgba(212, 175, 55, 0.25);
}
body.theme-alpine .app-nav {
    background: linear-gradient(135deg, rgba(12, 40, 24, 0.85) 0%, rgba(5, 26, 14, 0.95) 100%);
    border-color: rgba(88, 201, 136, 0.25);
}
body.theme-sunset .app-nav {
    background: linear-gradient(135deg, rgba(33, 14, 43, 0.85) 0%, rgba(19, 8, 26, 0.95) 100%);
    border-color: rgba(255, 140, 66, 0.25);
}

.nav-item {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--color-text-dim);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 100%;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    position: relative;
    transition: all var(--transition-fast);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 6px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--color-gold);
    opacity: 0;
    transform: scale(0);
    transition: all var(--transition-fast);
}

.nav-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.2;
    transition: transform var(--transition-fast);
}

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

.nav-item.active::after {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px var(--color-gold);
}

.nav-item.active .nav-icon {
    transform: translateY(-3px);
    filter: drop-shadow(0 0 5px var(--color-gold));
}

/* Responsive adjustments */
@media (min-width: 480px) {
    body {
        background-color: #02070f;
    }
}

/* Weather Daily Forecast Styles */
.weather-days-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.weather-day-row {
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.weather-day-row:hover {
    background: rgba(255, 255, 255, 0.06);
}

.weather-day-date-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.weather-day-date {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-gold);
}

.weather-day-icon {
    font-size: 1.25rem;
}

.weather-day-temp-desc {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.weather-day-temp {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-cream);
}

.weather-day-desc {
    font-size: 0.75rem;
    color: var(--color-text-dim);
}

.weather-day-clothing {
    font-size: 0.8rem;
    color: var(--color-cream);
    margin-top: 6px;
    padding-right: 8px;
    border-right: 2px solid var(--color-gold);
    width: 100%;
}

/* ==========================================
   --- PREMIUM UX OVERHAUL EXTRA STYLES ---
   ========================================== */

/* 1. Dual Clocks Bar */
.dual-clocks-bar {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-text-dim);
    margin-top: 6px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.clock-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.clock-item span {
    color: var(--color-gold-light);
    font-family: monospace;
    font-size: 0.76rem;
}

/* 2. Audio Briefing Player Card and Sound Wave */
.briefing-player {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 14px;
    margin-top: 12px;
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
}
.player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.player-btn {
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--color-gold);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    outline: none;
}
.player-btn:active {
    transform: scale(0.9);
    background: var(--color-gold);
    color: var(--bg-main);
}
.voice-speed-selector {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.25);
    padding: 2px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.voice-speed-selector .speed-btn {
    background: none;
    border: none;
    font-size: 0.68rem;
    padding: 3px 8px;
    border-radius: 20px;
    color: var(--color-text-dim);
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.voice-speed-selector .speed-btn.active {
    background: var(--color-gold);
    color: var(--bg-main);
}
.sound-wave {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
    opacity: 0.3;
    transition: opacity var(--transition-fast);
}
.sound-wave.active {
    opacity: 1;
}
.wave-bar {
    width: 2px;
    height: 3px;
    background-color: var(--color-gold);
    border-radius: 1px;
    transition: height 0.1s ease;
}
.sound-wave.active .wave-bar {
    animation: bounce 0.8s infinite ease-in-out alternate;
}
.sound-wave.active .wave-bar:nth-child(1) { animation-delay: 0.1s; height: 12px; }
.sound-wave.active .wave-bar:nth-child(2) { animation-delay: 0.3s; height: 16px; }
.sound-wave.active .wave-bar:nth-child(3) { animation-delay: 0.2s; height: 10px; }
.sound-wave.active .wave-bar:nth-child(4) { animation-delay: 0.5s; height: 18px; }
.sound-wave.active .wave-bar:nth-child(5) { animation-delay: 0.4s; height: 14px; }
.sound-wave.active .wave-bar:nth-child(6) { animation-delay: 0.6s; height: 8px; }
.sound-wave.active .wave-bar:nth-child(7) { animation-delay: 0.2s; height: 12px; }
@keyframes bounce {
    0% { transform: scaleY(0.3); }
    100% { transform: scaleY(1.1); }
}

/* 3. Zmanim Sun Arc */
.sun-arc-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px;
    margin-bottom: 12px;
}
.sun-arc-svg {
    width: 100%;
    max-width: 240px;
    height: auto;
}
.sun-arc-svg path {
    transition: stroke var(--transition-normal);
}
.sun-arc-svg text {
    font-family: inherit;
    font-weight: 700;
}
.sun-arc-status {
    font-size: 0.78rem;
    color: var(--color-cream);
    text-align: center;
    margin-top: 6px;
    font-weight: 500;
    line-height: 1.4;
}

/* 4. Illustrated Route Map */
.route-map-card {
    padding: 14px !important;
}
.svg-map-wrapper {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 6px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.interactive-route-map {
    width: 100%;
    height: auto;
    max-width: 300px;
}
.map-node-label {
    font-family: inherit;
    font-weight: 700;
    pointer-events: none;
    user-select: none;
}
.map-description-box {
    line-height: 1.45;
}

/* 5. Apple Wallet Digital Passes */
.wallet-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}
.wallet-pass {
    border-radius: var(--border-radius-md);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s;
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
}
.wallet-pass:active {
    transform: scale(0.985);
}
.detail-label {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.detail-val {
    letter-spacing: 0.2px;
}

/* 6. Phrasebook Card */
.phrasebook-card {
    padding: 14px !important;
}
.pb-tab-btn {
    flex: 1;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    color: var(--color-text-dim);
    padding: 6px 10px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    white-space: nowrap;
}
.pb-tab-btn.active {
    background: var(--color-gold);
    color: var(--bg-main);
    border-color: var(--color-gold);
}
.phrase-item {
    transition: background 0.2s;
}
.phrase-item:hover {
    background: rgba(255,255,255,0.06) !important;
}

/* 7. Travel Trivia Card */
.trivia-card {
    padding: 14px !important;
}
.trivia-opt-btn {
    transition: all 0.2s;
}
.trivia-opt-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.06) !important;
    border-color: rgba(255,255,255,0.1) !important;
}
.trivia-opt-btn:disabled {
    cursor: default;
}
.trivia-feedback-box {
    animation: tabFadeIn 0.25s ease forwards;
}

/* 8. Baggage Weight Calculator */
.weight-card {
    padding: 14px !important;
}
.weight-progress-container {
    background: rgba(0,0,0,0.15);
    padding: 10px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255,255,255,0.03);
}
.weight-bar-bg {
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    overflow: hidden;
}
.weight-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease, background-color 0.3s;
}

/* 9. Travel Expenses Card */
.expenses-card {
    padding: 14px !important;
}
.expense-summary-box {
    background: rgba(0,0,0,0.2) !important;
    border: 1px solid rgba(255,255,255,0.04) !important;
}

/* 10. District Decoder Card */
.district-decoder-card {
    padding: 14px !important;
}
.decoder-result-box {
    animation: tabFadeIn 0.25s ease forwards;
}

/* 11. Metro Guide Card */
.metro-guide-card {
    padding: 14px !important;
}
.metro-route-result {
    animation: tabFadeIn 0.25s ease forwards;
}

/* 12. Quality of Life & Sub-Tabs */
.hidden {
    display: none !important;
}

.sub-nav-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.sub-nav-bar::-webkit-scrollbar {
    display: none;
}

.sub-nav-btn {
    flex: 0 0 auto;
    padding: 8px 14px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    color: var(--color-text-dim);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.sub-nav-btn.active {
    background: rgba(212, 175, 55, 0.12) !important;
    border-color: var(--color-gold) !important;
    color: var(--color-gold) !important;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}
.sub-nav-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
}

/* Details/Summary styling */
.help-details-card summary::-webkit-details-marker {
    display: none;
}
.help-details-card summary {
    list-style: none;
}
details[open] .details-arrow {
    transform: rotate(180deg);
}
