/* Theme Variables */
:root,
[data-theme="dark"] {
    /* Dark Theme - Liquid Glass */
    --bg-primary: #101922;
    --bg-secondary: #16202a;
    --primary-text: #FFFFFF;
    --secondary-text: #86868b;
    --accent-color: #0A84FF;
    --accent-rgb: 10, 132, 255;

    /* Liquid Glass Effect */
    --glass-bg: rgba(28, 28, 30, 0.65);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --nav-bg: rgba(28, 28, 30, 0.75);

    /* Element Colors */
    --table-header-bg: rgba(255, 255, 255, 0.08);
    --table-row-hover: rgba(255, 255, 255, 0.12);
    --menu-bg: rgba(28, 28, 30, 0.95);

    /* Blobs */

    /* Old colors
    --blob-1: #5e5ce6;
    --blob-2: #0a84ff;
    --blob-3: #bf5af2;
    */
    --blob-1: #45536d;
    --blob-2: #60626a;
    --blob-3: #524958;

}

[data-theme="light"] {
    /* Light Theme - Liquid Glass */
    --bg-primary: #F2F2F7;
    --bg-secondary: #FFFFFF;
    --primary-text: #000000;
    --secondary-text: #6e6e73;
    --accent-color: #007AFF;
    --accent-rgb: 0, 122, 255;

    /* Liquid Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(174, 142, 111, 0.4);

    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    --nav-bg: rgba(255, 255, 255, 0.75);

    /* Element Colors */
    --table-header-bg: rgba(0, 0, 0, 0.03);
    --table-row-hover: rgba(0, 0, 0, 0.05);
    --menu-bg: rgba(255, 255, 255, 0.95);

    /* Blobs */
    /* Old colors
    --blob-1: #5e5ce6;
    --blob-2: #0a84ff;
    --blob-3: #bf5af2;
    */
    --blob-1: #e8e3c5;
    --blob-2: #c19a6b;
    --blob-3: #c2b280;
}

/* Common Variables */
:root {
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --menu-width: 280px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --padding-side: 20px;
    /* Side padding for top menu */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--primary-text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    padding-top: 80px;
    /* Space for fixed top nav */
    overflow-x: hidden;
    background: radial-gradient(circle at top left, var(--bg-secondary), var(--bg-primary));
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Top Navigation Bar - Liquid Glass Floating Style */
.top-nav {
    position: fixed;
    top: 10px;
    left: var(--padding-side);
    right: var(--padding-side);
    height: 60px;
    background: var(--nav-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 200;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.top-nav-left {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-title-main {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-text);
    letter-spacing: -0.01em;
}

.nav-title-sub {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--secondary-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.top-nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.sync-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.sync-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--secondary-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sync-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-text);
    font-variant-numeric: tabular-nums;
}

.theme-toggle {
    cursor: pointer;
    padding: 0.6rem;
    border-radius: 50%;
    color: var(--secondary-text);
    background: rgba(120, 120, 128, 0.1);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(120, 120, 128, 0.2);
    color: var(--primary-text);
    transform: scale(1.05);
}

/* Animated Background Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: move 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--blob-1);
    opacity: 0.5;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--blob-2);
    animation-delay: -5s;
    opacity: 0.5;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 50vw;
    height: 50vw;
    background: var(--blob-3);
    animation-delay: -10s;
    opacity: 0.4;
}

@keyframes move {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(30px, -30px) scale(1.05);
    }
}

/* Glass Container */
.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 1400px;
    box-shadow: var(--glass-shadow);
    margin-top: 2rem;
    position: relative;
    /* Ensure z-index is lower than menu */
    z-index: 10;
}

header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

/* Menu Icon - now in top nav */
.menu-icon {
    width: 30px;
    height: 24px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 20;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-text);
    border-radius: 3px;
    transition: 0.3s;
}

.menu-icon:hover .bar {
    background-color: var(--accent-color);
}

/* Main Title */
h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--primary-text), var(--secondary-text));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* Make room for menu icon on small screens if needed, but centering handles it mostly */
    margin: 0;
    /* Reset margin since it's now in flex container */
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    margin-bottom: 0.5rem;
    /* Padding reserves space so the title never overlaps the arrows */
    padding: 0 4rem;
    box-sizing: border-box;
}

.station-nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-text);
    opacity: 0.5;
    padding: 0.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, background 0.2s ease, transform 0.15s ease;
    /* Fixed position relative to the header-content container */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

#station-prev {
    left: 0;
}

#station-next {
    right: 0;
}

.station-nav-btn:hover {
    opacity: 0.8;
    background: rgba(120, 120, 128, 0.15);
    transform: translateY(-50%) scale(1.1);
}

.station-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* View toggle - now in top nav */
.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: var(--table-header-bg);
    padding: 4px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
}

/* Mini Progress Bar */
.mini-progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 2px;
    overflow: hidden;
}

.mini-progress-fill {
    height: 100%;
    background: var(--accent-color);
    width: 100%;
    transition: width 1s linear;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    color: var(--secondary-text);
    font-size: 0.8rem;
    border-top: 1px solid var(--glass-border);
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

.owner-container {
    text-align: right;
    padding: 0.5rem 1.5rem;
    margin-top: 0.5rem;
}

.station-owner {
    font-size: 0.85rem;
    color: var(--secondary-text);
    font-weight: 500;
}

.view-container {
    display: none;
    width: 100%;
    animation: fadeIn 0.3s ease-out;
}

.view-container.active {
    display: block;
}

#countdown-container {
    font-size: 0.9rem;
    color: var(--secondary-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

#countdown {
    font-weight: bold;
    color: var(--accent-color);
    font-variant-numeric: tabular-nums;
}

/* Progress Bar */
.progress-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-color);
    width: 100%;
    transform-origin: left;
    transition: width 0.1s linear;
}

/* Side Menu */
.side-menu {
    position: fixed;
    top: 75px;
    left: -300px;
    /* Hide off-screen */
    width: var(--menu-width);
    height: calc(100vh - 75px);
    background: var(--menu-bg);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--glass-border);
    transition: left 0.3s ease-in-out;
    padding: 1.5rem;
    z-index: 1000;
    /* Ensure it is above most things */
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.menu-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.about-link {
    display: block;
    color: var(--accent-color);
    /* Changed to accent color for visibility */
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: opacity 0.2s;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(var(--accent-rgb), 0.1);
    /* Subtle background */
}

.about-link:hover {
    opacity: 0.8;
}

.side-menu.open {
    left: 0;
}

/* Menu Header */
.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.side-menu h2 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin: 0;
    border: none;
    padding: 0;
}

.config-icon {
    cursor: pointer;
    color: var(--secondary-text);
    transition: color 0.3s, transform 0.3s;
    padding: 0.5rem;
}

.config-icon:hover {
    color: var(--accent-color);
    transform: rotate(45deg);
}

.fav-hint {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: none;
    /* Hidden by default */
}

.station-item {
    padding: 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.station-item::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
    margin-right: 10px;
    opacity: 0;
    transition: opacity 0.2s;
}

/* Show dot if favorite */
.station-item.favorite::before {
    opacity: 1;
}

/* Config Mode: Visually indicate selection capability */
.config-mode .station-item:hover {
    background: rgba(255, 255, 255, 0.1);
}


#station-list {
    list-style: none;
}

.station-item {
    padding: 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s;
    font-size: 1.1rem;
}

.station-item:hover {
    background: var(--table-row-hover);
    color: var(--accent-color);
}

.station-item.active {
    background: rgba(var(--accent-color), 0.1);
    /* Note: requires RGB var, fallback to simpler opacity if needed */
    background: var(--table-row-hover);
    color: var(--accent-color);
    border-left: 3px solid var(--accent-color);
    font-weight: 600;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Table Styles */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

table {
    width: 100%;
    border-collapse: collapse;
    color: var(--primary-text);
    font-size: 1.3rem;
    white-space: nowrap;
}

thead {
    background: var(--table-header-bg);
}

th,
td {
    padding: 1rem 1.5rem;
    text-align: left;
}

th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--secondary-text);
}

tr:not(:last-child) {
    border-bottom: 1px solid var(--glass-border);
}

tbody tr {
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background-color: var(--table-row-hover);
}

/* Animation for new rows */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

tbody tr {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Responsive */
@media (max-width: 1024px) {
    body {
        padding: 0.5rem;
    }

    .glass-container {
        padding: 0.5rem;
        margin-top: 5rem;
        width: 100%;
        max-width: 100%;
        border-radius: 12px;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .view-toggle {
        position: absolute;
        right: 0.5rem;
        top: 0.5rem;
        transform: none;
    }

    h1 {
        font-size: 1.8rem;
    }

    th,
    td {
        padding: 0.5rem 0.4rem;
        font-size: 1.2rem;
        /* Increased font size for better readability on mobile */
    }

    /* Mobile Table Alignment */
    th:nth-child(2),
    td:nth-child(2),
    th:nth-child(3),
    td:nth-child(3),
    th:nth-child(4),
    td:nth-child(4) {
        text-align: center;
    }

    th:nth-child(5),
    td:nth-child(5) {
        text-align: right;
    }

    .menu-icon {
        top: 0.5rem;
        left: 0.5rem;
    }

    .mobile-hide {
        display: none;
    }
}

/* Warning Messages */
.warning-container {
    margin-top: 1rem;
    text-align: center;
    display: none;
    width: 100%;
}

.warning-container.active {
    display: block;
}

.warning-msg {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    backdrop-filter: blur(4px);
    max-width: 90%;
}

.warning-yellow {
    background-color: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.5);
    color: #ffca28;
}

.warning-red {
    background-color: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
    color: #ef5350;
}

/* Latest Measurements Display */
.latest-measurements {
    display: none;
    /* Hidden by default, shown when data is available */
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    margin-bottom: 1rem;
    margin-left: 65px;
    /* Align with Y-axis */
    margin-right: 10px;
    /* Align with X-axis end */
}

.latest-measurements.active {
    display: flex;
}

.measurement-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.measurement-label {
    font-size: 0.7rem;
    color: var(--secondary-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Smaller values for more compact display */
.measurement-value {
    font-size: 1.8rem;
    color: var(--primary-text);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Use graph colors for wind measurements */
.measurement-snitt .measurement-value {
    color: #228b22;
    /* ForestGreen - matches graph */
}

.measurement-item:has(#latest-min) .measurement-value {
    color: #0876d0;
    /* SteelBlue - matches graph */
}

.measurement-item:has(#latest-maks) .measurement-value {
    color: #a52a2a;
    /* Brown/Red - matches graph */
}

/* Latest Measurements Layout */
.latest-measurements {
    /* Layout properties apply when active */
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.measurement-item {
    background: var(--glass-bg);
    padding: 1.5rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    flex: 1;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: var(--glass-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.measurement-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.measurement-label {
    font-size: 0.8rem;
    color: var(--secondary-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.measurement-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-text);
    font-variant-numeric: tabular-nums;
}

.measurement-time .measurement-value {
    font-size: 1.4rem;
}

@media (max-width: 1024px) {
    .latest-measurements.active {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        padding: 0.5rem 0;
        margin-left: 0;
        margin-right: 0;
    }

    .measurement-item {
        padding: 0.8rem 0.5rem;
        min-width: 0;
        /* Reset any span / order so all cells are equal */
        grid-column: unset;
        order: unset;
    }

    .measurement-value {
        font-size: 1.4rem;
    }

    .measurement-label {
        font-size: 0.65rem;
    }

    .measurement-time .measurement-value {
        font-size: 1.2rem;
    }

    /* Row 1: Snitt, Min, Maks  |  Row 2: Tid, Retning, Temp */
    .measurement-snitt {
        order: 1;
    }

    .measurement-min {
        order: 2;
    }

    .measurement-maks {
        order: 3;
    }

    .measurement-time {
        order: 4;
    }

    .measurement-retning {
        order: 5;
    }

    .measurement-temp {
        order: 6;
    }
}

/* Mobile Navigation Adjustments */
@media (max-width: 768px) {
    .top-nav {
        padding: 0 0.8rem;
    }

    .top-nav-left {
        gap: 0.6rem;
    }

    .nav-title-main {
        font-size: 0.8rem;
        max-width: 140px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-title-sub {
        font-size: 0.6rem;
    }

    .top-nav-right {
        gap: 0.6rem;
    }

    .sync-time {
        align-items: center;
        /* Center text/progress bar */
    }

    .sync-label {
        font-size: 0.55rem;
    }

    .sync-value {
        font-size: 0.8rem;
    }

    .mini-progress-bar {
        width: 100%;
        max-width: 60px;
    }

    .view-toggle {
        transform: scale(0.9);
    }
}

/* View Toggle Icons Logic */
#view-toggle-btn .icon-table {
    display: none;
}

#view-toggle-btn .icon-chart {
    display: block;
}

/* When in chart mode (showing chart), button displays TABLE icon to switch back */
#view-toggle-btn.mode-chart .icon-table {
    display: block !important;
}

#view-toggle-btn.mode-chart .icon-chart {
    display: none !important;
}

/* ===== PWA Install Banner ===== */
.pwa-install-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    width: calc(100% - 3rem);
    max-width: 520px;
    background: var(--nav-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    z-index: 9999;
    animation: none;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
    opacity: 0;
}

.pwa-install-banner.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex: 1;
    min-width: 0;
}

.pwa-banner-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.pwa-banner-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pwa-banner-text strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-text);
    white-space: nowrap;
}

.pwa-banner-text span {
    font-size: 0.78rem;
    color: var(--secondary-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwa-banner-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.pwa-btn {
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-family);
}

.pwa-btn-install {
    background: var(--accent-color);
    color: #fff;
}

.pwa-btn-install:hover {
    filter: brightness(1.15);
    transform: scale(1.03);
}

.pwa-btn-dismiss {
    background: rgba(120, 120, 128, 0.15);
    color: var(--secondary-text);
}

.pwa-btn-dismiss:hover {
    background: rgba(120, 120, 128, 0.25);
    color: var(--primary-text);
}

@media (max-width: 480px) {
    .pwa-install-banner {
        flex-direction: column;
        align-items: flex-start;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        width: auto;
        transform: translateX(0) translateY(120%);
    }

    .pwa-install-banner.visible {
        transform: translateX(0) translateY(0);
    }

    .pwa-banner-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ===== Widget Mode ===== */
body.widget-mode .top-nav,
body.widget-mode .station-nav-btn,
body.widget-mode #side-menu,
body.widget-mode .menu-overlay {
    display: none !important;
}

body.widget-mode {
    padding-top: 20px;
}

body.widget-mode .glass-container {
    margin-top: 0;
}