/* ==========================================================================
   elProject Portal - Outdoor & Adventure Mobile First Theme 🚴‍♂️⛰️
   Cheerful, Vibrant, High-Contrast & Optimized for Smartphone Browsing
   ========================================================================== */

/* 1. Design Tokens & Root Variables */
:root {
    --font-heading: 'Outfit', 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;

    /* Bright Outdoor Color Palette */
    --bg-page: #f2f7f4;
    --bg-card: #ffffff;
    --bg-card-subtle: #f8faf9;
    --bg-header: rgba(255, 255, 255, 0.92);

    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-white: #ffffff;

    /* Theme Accents */
    --accent-forest: #059669;
    --accent-forest-light: #d1fae5;
    --accent-forest-glow: rgba(5, 150, 105, 0.25);

    --accent-amber: #f59e0b;
    --accent-amber-light: #fef3c7;
    --accent-amber-glow: rgba(245, 158, 11, 0.25);

    --accent-sky: #0284c7;
    --accent-sky-light: #e0f2fe;
    
    --accent-orange: #f97316;
    --accent-orange-light: #ffedd5;

    --accent-purple: #8b5cf6;
    --accent-purple-light: #f3e8ff;

    /* Borders & Shadows */
    --border-light: rgba(16, 185, 129, 0.15);
    --border-hover: rgba(5, 150, 105, 0.4);
    --shadow-soft: 0 8px 24px -4px rgba(15, 23, 42, 0.06);
    --shadow-card: 0 12px 32px -6px rgba(5, 150, 105, 0.08);
    --shadow-fab: 0 8px 24px rgba(245, 158, 11, 0.4);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. Global Resets & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Background Glowing Outdoor Sun & Silhouette */
.outdoor-bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.sun-glow {
    position: absolute;
    top: -120px;
    right: -80px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(251, 191, 36, 0.08) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
}

.mountain-silhouette {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    height: 240px;
    background-image: radial-gradient(ellipse at bottom, rgba(5, 150, 105, 0.08) 0%, transparent 70%);
    opacity: 0.8;
}

/* 3. Mobile First Main Shell */
.mobile-app-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px; /* Mobile focused max-width, center aligned on desktop */
    margin: 0 auto;
    padding: 16px 16px 80px 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 4. Mobile Header */
.mobile-header {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent-forest), var(--accent-amber));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 20px;
    box-shadow: 0 6px 16px var(--accent-forest-glow);
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-forest);
}

.header-time-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--accent-amber-light);
    border-radius: var(--radius-full);
    color: var(--accent-amber);
    font-size: 13px;
    font-weight: 700;
}

.time-sim-select {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-full);
    padding: 2px 8px;
    outline: none;
    color: #b45309;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.time-sim-select option {
    background: #ffffff;
    color: #0f172a;
}

/* Search Box Wrap */
.search-box-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    color: var(--accent-forest);
    font-size: 15px;
    pointer-events: none;
}

.search-box-wrap input {
    width: 100%;
    height: 46px;
    padding: 0 44px 0 46px;
    background: #f0f7f3;
    border: 1.5px solid transparent;
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: var(--transition);
}

.search-box-wrap input::placeholder {
    color: var(--text-muted);
}

.search-box-wrap input:focus {
    background: #ffffff;
    border-color: var(--accent-forest);
    box-shadow: 0 0 0 4px var(--accent-forest-glow);
}

.clear-btn {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    padding: 6px;
    cursor: pointer;
}

/* 5. Unified Hero Outdoor Card & Dynamic Time Themes */
.hero-outdoor-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px 20px;
    border-radius: var(--radius-lg);
    color: var(--text-white);
    overflow: hidden;
    transition: all 0.5s ease-in-out;
}

/* Unified Top Bar */
.hero-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.hero-top-bar .brand-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-top-bar .brand-title {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.1;
}

.hero-top-bar .brand-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    font-weight: 600;
}

.hero-top-bar .brand-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 19px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-right-meta {
    display: flex;
    align-items: center;
}

.prominent-clock-widget {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.clock-time-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}

.clock-icon {
    font-size: 16px;
    color: #ffffff;
    opacity: 0.9;
}

.dominant-time {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.date-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.3px;
}

.date-row i {
    font-size: 11px;
    opacity: 0.9;
}

.weather-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
}

.weather-icon {
    font-size: 13px;
}

.weather-temp {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 12px;
    color: #ffffff;
}

.weather-desc {
    opacity: 0.95;
    font-size: 10.5px;
    white-space: nowrap;
}

.time-sim-select {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    border-radius: var(--radius-full);
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    outline: none;
    cursor: pointer;
}
.time-sim-select option {
    background: #0f172a;
    color: #ffffff;
}

/* Mid Section */
.hero-mid-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Embedded Search Input inside Hero Card */
.hero-outdoor-card .search-box-wrap {
    position: relative;
    width: 100%;
    margin-top: 2px;
}
.hero-outdoor-card .search-box-wrap input {
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    border: none;
    height: 44px;
    font-size: 13.5px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.hero-outdoor-card .search-box-wrap input::placeholder {
    color: #64748b;
}
.hero-outdoor-card .search-icon {
    color: #059669;
}

/* Default Fallback / Pagi (Morning Fresh Forest & Sunrise) */
.hero-outdoor-card,
.hero-outdoor-card.theme-pagi {
    background: linear-gradient(135deg, #059669 0%, #047857 55%, #d97706 100%);
    box-shadow: 0 16px 36px -8px rgba(5, 150, 105, 0.4);
}

/* Siang (Bright Sky & Sunlit Trail) */
.hero-outdoor-card.theme-siang {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 55%, #f59e0b 100%);
    box-shadow: 0 16px 36px -8px rgba(2, 132, 199, 0.4);
}

/* Sore (Sunset Glow & Twilight Mountain) */
.hero-outdoor-card.theme-sore {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 45%, #7c3aed 100%);
    box-shadow: 0 16px 36px -8px rgba(249, 115, 22, 0.45);
}

/* Malam (Midnight Starlight & Mountain Camping) */
.hero-outdoor-card.theme-malam {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    border: 1px solid rgba(129, 140, 248, 0.3);
    box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.7), 0 0 25px rgba(99, 102, 241, 0.25);
}

/* Dynamic Page Theme for Night Mode */
body.theme-malam {
    background-color: #0b0f19;
    color: #f8fafc;
}
body.theme-malam .app-card,
body.theme-malam .category-pill,
body.theme-malam .empty-state,
body.theme-malam .modal-card {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}
body.theme-malam .category-section-title,
body.theme-malam .card-app-title,
body.theme-malam .modal-title h3 {
    color: #ffffff;
}

.hero-watermark-icon {
    position: absolute;
    right: 14px;
    bottom: 4px;
    font-size: 68px;
    opacity: 0.18;
    pointer-events: none;
    transition: all 0.5s ease-in-out;
}

.hero-header-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.adventure-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.today-date-badge {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.9;
}

.hero-greeting {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.hero-quote {
    font-size: 13px;
    opacity: 0.9;
    font-style: italic;
    line-height: 1.4;
}

/* Quick Stats Row */
.quick-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-top: 6px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
}

.mini-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.stat-lbl {
    font-size: 11px;
    opacity: 0.85;
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.25);
}

/* 6. Category Swipe Pills */
.category-swipe-wrapper {
    width: 100%;
    overflow: hidden;
}

.category-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.category-pills::-webkit-scrollbar {
    display: none;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 16px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.category-pill.active {
    background: var(--accent-forest);
    border-color: var(--accent-forest);
    color: var(--text-white);
    box-shadow: 0 4px 14px var(--accent-forest-glow);
}

.pill-count {
    padding: 2px 7px;
    background: var(--bg-page);
    border-radius: var(--radius-full);
    font-size: 11px;
    color: var(--text-primary);
}

.category-pill.active .pill-count {
    background: rgba(255, 255, 255, 0.25);
    color: var(--text-white);
}

/* 7. Main Content & Apps Cards */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.content-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
}

.category-section-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.count-badge {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-forest);
    background: var(--accent-forest-light);
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

/* Cards List */
.apps-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* App Card Component (Mobile Focused) */
.app-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.app-card:active, .app-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -6px rgba(5, 150, 105, 0.15);
}

.card-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* Outdoor Color Theme Variations */
.app-card[data-color="forest"] .card-icon-badge { background: var(--accent-forest-light); color: var(--accent-forest); }
.app-card[data-color="amber"] .card-icon-badge { background: var(--accent-amber-light); color: var(--accent-amber); }
.app-card[data-color="sky"] .card-icon-badge { background: var(--accent-sky-light); color: var(--accent-sky); }
.app-card[data-color="terracotta"] .card-icon-badge { background: var(--accent-orange-light); color: var(--accent-orange); }
.app-card[data-color="purple"] .card-icon-badge { background: var(--accent-purple-light); color: var(--accent-purple); }

.card-actions-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-fav-star, .btn-edit-item {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f8faf9;
    border: 1px solid #e2e8f0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-fav-star:hover, .btn-edit-item:hover {
    background: #ffffff;
    border-color: var(--accent-forest);
    color: var(--text-primary);
}

.btn-fav-star.active {
    color: var(--accent-amber);
    background: #fef3c7;
    border-color: #fde68a;
}

.card-body-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-app-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.card-app-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.card-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.status-pill.operational { color: var(--accent-forest); }
.status-pill.maintenance { color: var(--accent-amber); }
.status-pill.beta { color: var(--accent-sky); }

.dot-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.operational .dot-indicator { background: var(--accent-forest); }
.maintenance .dot-indicator { background: var(--accent-amber); }
.beta .dot-indicator { background: var(--accent-sky); }

.btn-open-app {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    background: var(--accent-forest);
    border-radius: var(--radius-full);
    color: var(--text-white);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px var(--accent-forest-glow);
    transition: var(--transition);
}

.btn-open-app:active {
    transform: scale(0.96);
}

/* 8. Floating Action Button (FAB) */
.fab-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-amber), var(--accent-orange));
    color: var(--text-white);
    border: none;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-fab);
    cursor: pointer;
    z-index: 90;
    transition: var(--transition);
}

.fab-btn:active {
    transform: scale(0.92);
}

/* 9. Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    background: var(--bg-card);
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-lg);
    text-align: center;
    gap: 10px;
}

.empty-illustration {
    font-size: 40px;
    color: var(--accent-forest);
    margin-bottom: 4px;
}

.empty-state h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
}

.empty-state p {
    font-size: 13px;
    color: var(--text-muted);
}

.btn-outdoor {
    margin-top: 8px;
    padding: 10px 20px;
    background: var(--accent-forest);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

/* 10. Footer */
.mobile-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.footer-text {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.btn-reset-link {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
}

/* 11. Modal Mobile Dialog */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: flex-end; /* Bottom sheet feel on mobile */
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: var(--transition);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title-icon {
    font-size: 20px;
    color: var(--accent-forest);
}

.modal-title h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
}

.modal-close {
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
}

.modal-form-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

.field-row {
    display: flex;
    gap: 12px;
}
.col { flex: 1; }

.modal-form-body label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

.req { color: var(--accent-orange); }

.modal-form-body input,
.modal-form-body select,
.modal-form-body textarea {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
}

.modal-form-body textarea {
    height: auto;
    padding: 10px 14px;
}

.modal-form-body input:focus,
.modal-form-body select:focus,
.modal-form-body textarea:focus {
    border-color: var(--accent-forest);
    background: #ffffff;
}

.icon-input-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-prev {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--accent-forest-light);
    color: var(--accent-forest);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-cancel {
    flex: 1;
    height: 46px;
    background: #f1f5f9;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
}

.btn-outdoor-submit {
    flex: 2;
    height: 46px;
    background: linear-gradient(135deg, var(--accent-forest), #047857);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 700;
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px var(--accent-forest-glow);
    cursor: pointer;
}

/* 12. Tablet & Desktop Responsive Layout System */
@media (min-width: 640px) {
    .mobile-app-shell {
        max-width: 768px;
        padding-top: 28px;
    }
    .modal-overlay {
        align-items: center;
    }
    .modal-card {
        border-radius: var(--radius-lg);
    }
    .apps-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (min-width: 992px) {
    .mobile-app-shell {
        max-width: 1240px;
        padding: 36px 40px 120px 40px;
        gap: 24px;
    }

    /* Desktop Unified Hero Card */
    .hero-outdoor-card {
        padding: 32px 36px;
        gap: 22px;
        border-radius: var(--radius-lg);
    }

    .hero-top-bar .brand-title {
        font-size: 24px;
    }

    .hero-top-bar .brand-subtitle {
        font-size: 13px;
    }

    .hero-top-bar .brand-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .prominent-clock-widget {
        padding: 10px 18px;
        gap: 4px;
    }

    .dominant-time {
        font-size: 28px;
    }

    .date-row {
        font-size: 12px;
    }

    .time-sim-select {
        padding: 3px 10px;
        font-size: 12px;
    }

    .hero-greeting {
        font-size: 26px;
    }

    .hero-quote {
        font-size: 15px;
    }

    .hero-outdoor-card .search-box-wrap input {
        height: 52px;
        padding-left: 50px;
        font-size: 15px;
    }

    .hero-outdoor-card .search-icon {
        left: 20px;
        font-size: 17px;
    }

    .quick-stats-row {
        padding: 16px 32px;
    }

    .stat-num {
        font-size: 22px;
    }

    .stat-lbl {
        font-size: 13px;
    }

    /* Category Pills on Desktop - Clean Wrap */
    .category-pills {
        flex-wrap: wrap;
        margin: 0;
        padding: 0;
        gap: 12px;
    }

    .category-pill {
        height: 44px;
        padding: 0 20px;
        font-size: 14px;
    }

    /* 3-Column Apps Grid on Desktop */
    .apps-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .app-card {
        padding: 22px;
    }

    .card-app-title {
        font-size: 17px;
    }

    .card-app-desc {
        font-size: 13.5px;
    }

    .fab-btn {
        width: 64px;
        height: 64px;
        font-size: 26px;
        right: 40px;
        bottom: 40px;
    }
}

@media (min-width: 1400px) {
    .mobile-app-shell {
        max-width: 1360px;
    }
}
