/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* Components/Layout/MainLayout.razor.css */

.logo[b-3mjaebppjn] {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    flex-shrink: 0; /* Prevent logo from shrinking */
}

.header-right-items[b-3mjaebppjn] {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.page-title[b-3mjaebppjn] {
    /* CHANGED: Bright Sky Blue to stand out cleanly */
    color: #ffffff;
    margin-bottom: 0;
    align-content: center;
    /* CHANGED: Bold but not uppercase */
    font-weight: 700;
    font-size: calc(1.1rem + 4px);
    height: 40px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* subtle shadow to lift it off the background */
    text-shadow: 0 2px 4px black;
}

.header-content[b-3mjaebppjn] {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 40px;
    gap: 10px; /* Add gap for spacing */
}

/* --- ADDED: Utility class for JS toggle --- */
.hidden[b-3mjaebppjn] {
    display: none !important;
}

/* --- ADDED: New Desktop Menu Styles --- */
.new-desktop-nav[b-3mjaebppjn] {
    display: none; /* 'hidden' */
    align-items: center; /* 'items-center' */
    gap: 2rem; /* 'space-x-8' */
    margin-left: auto; /* Push to the right */
    margin-bottom: 8px;
}

@media (min-width: 1024px) { /* 'lg:' breakpoint */
    .new-desktop-nav[b-3mjaebppjn] {
        display: flex; /* 'lg:flex' */
    }
}

/* --- ADDED: New Mobile Button Styles --- */
.new-mobile-menu-button[b-3mjaebppjn] {
    display: block; /* Default state: visible */
    background: none;
    border: none;
    color: white;
    padding: 4px;
    cursor: pointer;
    flex-shrink: 0; /* Prevent button from shrinking */
    margin-bottom: 4px;
}

.new-mobile-menu-button .w-6[b-3mjaebppjn] { /* Styles from index.html */
    width: 1.5rem;
    height: 1.5rem;
}

@media (min-width: 1024px) { /* 'lg:' breakpoint */
    .new-mobile-menu-button[b-3mjaebppjn] {
        display: none; /* 'lg:hidden' */
    }
}

/* --- ADDED: New Mobile Panel Styles --- */
.new-mobile-menu-panel[b-3mjaebppjn] {
    background: var(--color-background); /* <-- CHANGED */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: absolute;
    top: 41px; /* Height of the header */
    left: 0;
    right: 0;
    z-index: 40;
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--color-border); /* <-- CHANGED */
}

@media (min-width: 1024px) { /* 'lg:' breakpoint */
    .new-mobile-menu-panel[b-3mjaebppjn] {
        display: none !important; /* 'lg:hidden' */
    }
}

.mobile-menu-group[b-3mjaebppjn] {
    margin-top: 1.25rem; /* 'space-y-2' simulation */
}

.mobile-menu-header[b-3mjaebppjn] {
    display: block;
    padding-top: 0.5rem;
    padding-bottom: 0.25rem;
    color: var(--color-text-secondary); /* <-- CHANGED */
    font-weight: 700;
    font-size: 0.75rem; /* 'text-sm' */
    text-transform: uppercase;
    letter-spacing: 0.05em; /* 'tracking-wide' */
}

.mobile-menu-link[b-3mjaebppjn] {
    display: flex;
    padding: 0.5rem 0 0.5rem 1rem; /* 'py-2 pl-4' */
    color: var(--color-text-primary); /* <-- CHANGED */
    font-weight: 500; /* 'font-medium' */
    text-decoration: none;
    border-radius: 4px;
    gap: 8px;
    align-items: center;
}

.mobile-menu-link:hover[b-3mjaebppjn] {
    background-color: var(--color-card-bg); /* <-- CHANGED */
    color: var(--color-accent); /* <-- CHANGED */
}

.mobile-menu-link.active[b-3mjaebppjn] {
    background-color: var(--color-accent); /* <-- CHANGED */
    color: var(--color-text-primary); /* <-- CHANGED */
    font-weight: 700;
}

/* --- PRESERVED: Existing Dropdown Styles (Unchanged) --- */
.nav-item[b-3mjaebppjn] {
    position: relative;
    padding: 0 4px 0 4px;
    list-style: none;
}

.nav-item .nav-link[b-3mjaebppjn] {
    display: flex;
    padding: 0 15px;
    color: white;
    text-decoration: none;
    cursor: default;
}

.nav-link-button[b-3mjaebppjn] {
    border: none;
    background: none;
    padding: 12px 16px; /* <-- Match dropdown-item */
    cursor: pointer;
    color: var(--color-text-primary); /* <-- CHANGED */
    font-size: inherit;
    font-family: inherit;
    width: 100%;
    text-align: left;
    transition: background-color 0.15s ease-in-out; /* <-- ADDED */
}

/* ADD this new hover rule */
.nav-link-button:hover[b-3mjaebppjn] {
    background-color: var(--color-accent);
    color: var(--color-text-primary);
}

/* ADD this new rule for icon alignment */
.nav-link-button i[b-3mjaebppjn] {
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

/* Mobile panel form button */
.mobile-menu-link .nav-link-button[b-3mjaebppjn] {
    padding: 0;
    color: inherit; /* <-- CHANGED */
}

.mobile-menu-link:hover .nav-link-button[b-3mjaebppjn] {
    color: inherit; /* <-- CHANGED */
}

.dropdown-content[b-3mjaebppjn] {
    position: absolute;
    background-color: var(--color-background);
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    overflow: hidden;

    /* DEFAULT (Closing): No delay, instant fade out */
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out, visibility 0.2s;
}

.dropdown-item[b-3mjaebppjn] {
    color: var(--color-text-primary); /* <-- CHANGED */
    margin: 0;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background-color 0.15s ease-in-out;
}

.dropdown-item:hover[b-3mjaebppjn] {
    background-color: var(--color-accent); /* <-- CHANGED */
    color: var(--color-text-primary); /* <-- CHANGED */
}

.nav-item.dropdown:hover .dropdown-content[b-3mjaebppjn] {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);

    /* HOVER (Opening): Add 0.2s delay to all properties */
    transition: opacity 0.1s ease-in-out 0.1s, transform 0.1s ease-in-out 0.1s, visibility 0.1s 0.1s;
}

.nav-link-with-icon[b-3mjaebppjn] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link-with-icon .fa-chevron-down[b-3mjaebppjn] {
    font-size: 0.7em;
    opacity: 0.8;
}

.dropdown-item i[b-3mjaebppjn] {
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

.nav-link.active[b-3mjaebppjn],
.nav-link-with-icon.active[b-3mjaebppjn] {
    background-color: var(--color-accent);
    box-shadow: inset 0 -13px 11px 3px #0000003d, -1px 2px 0px 0px #1f293780;
    color: var(--color-text-primary);
    font-weight: 700;
    border-radius: 4px;
}

.dropdown-item.active[b-3mjaebppjn],
.dropdown-item.active:hover[b-3mjaebppjn] {
    background-color: var(--color-accent); /* <-- CHANGED */
    color: var(--color-text-primary); /* <-- CHANGED */
    font-weight: 700;
}

.header-page-icon[b-3mjaebppjn] {
    display: flex;
    align-items: center;
    height: 100%;
    /* CHANGED: Match the title color exactly */
    color: white;
    flex-shrink: 0;
    /* Optional: Add a subtle glow to the icon too */
    filter: drop-shadow(0 2px 4px black);
}

.header-page-icon i[b-3mjaebppjn] {
    font-size: 20px;
    line-height: 1;
    width: 24px;
    height: 18px;
    text-align: center;
    opacity: 0.9;
}

/* --- Logout Button Red Hover --- */
form .nav-link-button:hover[b-3mjaebppjn] {
    background-color: #dc3545; /* Bootstrap Red */
    color: white;
}

.new-desktop-nav .nav-item.dropdown:last-child .dropdown-content[b-3mjaebppjn] {
    left: auto;
    right: 0;
}

/* --- Centered Title Logic --- */

.title-container[b-3mjaebppjn] {
    display: flex;
    align-items: center;
    gap: 12px;

    /* KEY FIX: This creates a flexible buffer that pushes the title 
       to the center of the free space between Logo and Menu */
    flex-grow: 1;
    justify-content: center;

    /* Prevents the container from shrinking to 0 width */
    min-width: 0;

    /* Adds safe padding so text never touches the menu or logo */
    padding: 0 20px;
    height: 100%;
}

/* Ensure the text truncates properly if the window gets too small */
.title-container > div[b-3mjaebppjn] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Ensure the text wrapper doesn't force the container open */
    min-width: 0;
}

/* Mobile Tweak: On very small screens, align left to save space */
@media (max-width: 768px) {
    .title-container[b-3mjaebppjn] {
        justify-content: flex-start;
        padding-left: 10px;
    }
}
/* /Components/Pages/Admin/AdminStations.razor.rz.scp.css */
.admin-settings-page[b-895od1czjv] {
    max-width: 900px;
    margin: 24px auto;
    padding: 0 16px;
    color: var(--color-text-primary); /* Use theme text color */
}

.settings-header[b-895od1czjv] {
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border); /* Use theme border */
}

.settings-header h3[b-895od1czjv] {
    margin-bottom: 4px;
}

.settings-header p[b-895od1czjv] {
    font-size: 0.9em;
    color: var(--color-text-secondary); /* Use theme secondary text */
}

.setting-item[b-895od1czjv] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.setting-item label[b-895od1czjv] {
    font-weight: 600;
    color: var(--color-text-secondary);
}

.loading-indicator[b-895od1czjv] {
    padding: 40px;
    display: flex;
    justify-content: center;
}

.settings-card[b-895od1czjv] {
    background-color: var(--color-card-bg); /* Use theme card background */
    border: 1px solid var(--color-border); /* Use theme border */
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card-title[b-895od1czjv] {
    margin-top: 0;
    margin-bottom: 24px;
    color: var(--color-accent); /* Use theme accent color */
}

.setting-field[b-895od1czjv] {
    margin-bottom: 24px;
}

.setting-field label[b-895od1czjv] {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-text-primary);
}

.setting-field .field-description[b-895od1czjv] {
    font-size: 0.85em;
    color: var(--color-text-secondary); /* Use theme secondary text */
    margin-top: -4px;
    margin-bottom: 8px;
}

/* Fix for Radzen's w-100 class */
.w-100[b-895od1czjv] {
    width: 100%;
}

.image-preview-wrapper[b-895od1czjv] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.image-preview[b-895od1czjv] {
    max-width: 150px;
    max-height: 80px;
    border: 1px solid var(--color-border); /* Use theme border */
    border-radius: 4px;
    object-fit: contain;
    background-color: var(--color-background); /* Use theme background */
}

.image-input[b-895od1czjv] {
    flex-grow: 1;
}

.file-name-display[b-895od1czjv] {
    font-size: 0.9em;
    color: var(--color-text-secondary); /* Use theme secondary text */
    font-style: italic;
}

.action-buttons[b-895od1czjv] {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border); /* Use theme border */
}

/* Specific to AdminUsers */
.rz-label-inline[b-895od1czjv] {
    margin-left: 8px;
    font-weight: normal !important;
    color: var(--color-text-primary); /* Use theme text */
}

.add-by-station[b-895od1czjv] {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.add-by-station .rz-dropdown[b-895od1czjv] {
    flex-grow: 1;
}

.precache-feature-box[b-895od1czjv] {
    background-color: rgba(0, 0, 0, 0.15); /* Subtle dark background */
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-accent); /* Accent indicator */
    border-radius: 6px;
    padding: 16px;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.precache-row[b-895od1czjv] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.precache-icon[b-895od1czjv] {
    font-size: 1.5em;
    color: #f59e0b; /* Amber color for "electricity/power" vibe */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
}

.precache-info[b-895od1czjv] {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.precache-title[b-895od1czjv] {
    font-weight: 700;
    font-size: 1em;
    color: var(--color-text-primary);
    margin-bottom: 2px;
}

.precache-badge[b-895od1czjv] {
    font-size: 0.75em;
    background-color: #374151;
    color: #9ca3af;
    padding: 1px 6px;
    border-radius: 4px;
    font-family: monospace;
    width: fit-content;
}

/* Customizing the switch alignment */
.precache-switch[b-895od1czjv] {
    transform: scale(1.2); /* Make it slightly chunkier */
}
/* /Components/Pages/Admin/AdminUsers.razor.rz.scp.css */
.admin-settings-page[b-dfdfmn8cdd] {
    max-width: 900px;
    margin: 24px auto;
    padding: 0 16px;
    color: var(--color-text-primary); /* Use theme text color */
}

.settings-header[b-dfdfmn8cdd] {
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border); /* Use theme border */
}

.settings-header h3[b-dfdfmn8cdd] {
    margin-bottom: 4px;
}

.settings-header p[b-dfdfmn8cdd] {
    font-size: 0.9em;
    color: var(--color-text-secondary); /* Use theme secondary text */
}

.setting-item[b-dfdfmn8cdd] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.setting-item label[b-dfdfmn8cdd] {
    font-weight: 600;
    color: var(--color-text-secondary);
}

.loading-indicator[b-dfdfmn8cdd] {
    padding: 40px;
    display: flex;
    justify-content: center;
}

.settings-card[b-dfdfmn8cdd] {
    background-color: var(--color-card-bg); /* Use theme card background */
    border: 1px solid var(--color-border); /* Use theme border */
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card-title[b-dfdfmn8cdd] {
    margin-top: 0;
    margin-bottom: 24px;
    color: var(--color-accent); /* Use theme accent color */
}

.setting-field[b-dfdfmn8cdd] {
    margin-bottom: 24px;
}

.setting-field label[b-dfdfmn8cdd] {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-text-primary);
}

.setting-field .field-description[b-dfdfmn8cdd] {
    font-size: 0.85em;
    color: var(--color-text-secondary); /* Use theme secondary text */
    margin-top: -4px;
    margin-bottom: 8px;
}

/* Fix for Radzen's w-100 class */
.w-100[b-dfdfmn8cdd] {
    width: 100%;
}

.image-preview-wrapper[b-dfdfmn8cdd] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.image-preview[b-dfdfmn8cdd] {
    max-width: 150px;
    max-height: 80px;
    border: 1px solid var(--color-border); /* Use theme border */
    border-radius: 4px;
    object-fit: contain;
    background-color: var(--color-background); /* Use theme background */
}

.image-input[b-dfdfmn8cdd] {
    flex-grow: 1;
}

.file-name-display[b-dfdfmn8cdd] {
    font-size: 0.9em;
    color: var(--color-text-secondary); /* Use theme secondary text */
    font-style: italic;
}

.action-buttons[b-dfdfmn8cdd] {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border); /* Use theme border */
}

/* Specific to AdminUsers */
.rz-label-inline[b-dfdfmn8cdd] {
    margin-left: 8px;
    font-weight: normal !important;
    color: var(--color-text-primary); /* Use theme text */
}

.add-by-station[b-dfdfmn8cdd] {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.add-by-station .rz-dropdown[b-dfdfmn8cdd] {
    flex-grow: 1;
}

.admin-dual-panel[b-dfdfmn8cdd] {
    display: flex;
    height: calc(100vh - 120px); /* Adjust based on your header height */
    gap: 20px;
    margin: 20px;
}

/* 1:4 Ratio Layout */
.user-sidebar[b-dfdfmn8cdd] {
    flex: 1; /* Ratio 1 */
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 250px;
}

.edit-panel[b-dfdfmn8cdd] {
    flex: 4; /* Ratio 4 */
    overflow-y: auto;
    padding-right: 10px; /* Space for scrollbar */
}

/* Sidebar Styling */
.sidebar-header[b-dfdfmn8cdd] {
    padding: 15px;
    border-bottom: 2px solid var(--color-background);
}

.user-list-scroll[b-dfdfmn8cdd] {
    overflow-y: auto;
    flex-grow: 1;
}

.user-list-item[b-dfdfmn8cdd] {
    padding: 12px 15px;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-list-item:hover[b-dfdfmn8cdd] {
    background: rgba(255, 255, 255, 0.05);
}

.user-list-item.active[b-dfdfmn8cdd] {
    background: var(--color-accent);
    color: white;
}

.user-info[b-dfdfmn8cdd] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.username[b-dfdfmn8cdd] {
    font-weight: 700;
    font-size: 0.95rem;
}

.last-seen[b-dfdfmn8cdd] {
    font-size: 0.75rem;
    opacity: 0.6;
}

.admin-badge[b-dfdfmn8cdd] {
    font-size: 0.65rem;
    background: #dc3545;
    color: white;
    padding: 1px 6px;
    border-radius: 4px;
    width: fit-content;
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 4px;
}

.add-user-btn[b-dfdfmn8cdd] {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border: 2px dashed var(--color-accent);
    background: transparent;
    color: var(--color-text-primary);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.add-user-btn:hover[b-dfdfmn8cdd] {
    background: rgba(0, 121, 137, 0.1);
}

.add-user-btn.active[b-dfdfmn8cdd] {
    background: var(--color-accent);
    border-style: solid;
    color: white;
}

.empty-state[b-dfdfmn8cdd] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--color-text-secondary);
    opacity: 0.4;
}

.empty-state i[b-dfdfmn8cdd] {
    font-size: 5rem;
    margin-bottom: 1rem;
}

/* Container for the badges */
.mount-badges-container[b-dfdfmn8cdd] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    max-height: 200px;
    overflow-y: auto;
}

/* Individual badge styling */
.mount-badge[b-dfdfmn8cdd] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--color-accent);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-lg);
    font-size: var(--text-xs);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* Delete button inside the badge */
.remove-mount-btn[b-dfdfmn8cdd] {
    background: rgba(0, 0, 0, 0.2);
    border: none;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    transition: background-color 0.2s;
}

.remove-mount-btn:hover[b-dfdfmn8cdd] {
    background-color: var(--color-danger);
}

.remove-mount-btn i[b-dfdfmn8cdd] {
    line-height: 1;
}
/* /Components/Pages/Analytics/CohortRetention.razor.rz.scp.css */
.cohort-container[b-lmcjee2135] {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.loading-container[b-lmcjee2135] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 40px;
    color: var(--color-text-secondary);
}

/* Flex row for side-by-side charts */
.chart-row[b-lmcjee2135] {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.chart-card[b-lmcjee2135] {
    background: var(--color-card-bg);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    min-height: 450px;
    flex: 1 1 450px; /* Grow and shrink, base width 450px */
}

.chart-wrapper[b-lmcjee2135] {
    flex-grow: 1;
    position: relative;
    width: 100%;
    min-height: 350px;
}

.info-subtext[b-lmcjee2135] {
    display: block;
    font-weight: normal;
    font-size: 0.8em;
    color: var(--color-text-secondary);
    margin-top: 4px;
    font-style: italic;
}

.stat-footer[b-lmcjee2135] {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
    font-size: 0.95em;
    text-align: center;
    color: var(--color-text-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
}

.stat-footer strong[b-lmcjee2135] {
    color: var(--color-accent);
    font-size: 1.1em;
}
/* /Components/Pages/Analytics/MonthlyAnalysis.razor.rz.scp.css */
/* --- PAGE LAYOUT --- */
.analytics-container[b-bjy5k0j91n] {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px; /* Reduced gap slightly */
}



.legend-bar[b-bjy5k0j91n] {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
    background-color: transparent;
    border-radius: 8px;
    font-size: 0.85em;
    justify-content: flex-end;
    color: var(--color-text-secondary);
    margin-top: -12px; /* Pull it up closer to header */
}

.legend-title[b-bjy5k0j91n] {
    font-weight: 700;
    color: var(--color-text-primary);
}

.l-gradient[b-bjy5k0j91n] {
    width: 30px;          /* Wider to show the gradient */
    height: 12px;
    border-radius: 2px;
    border: 1px solid rgba(255,255,255,0.1);
    display: inline-block;
}

/* Ensure alignment */
.legend-group[b-bjy5k0j91n] {
    display: flex;
    align-items: center;
    gap: 6px;
}

.l-dot[b-bjy5k0j91n] {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.l-label[b-bjy5k0j91n] {
    font-weight: 500;
}

.legend-subtitle[b-bjy5k0j91n] {
    margin-left: 8px;
    font-style: italic;
    opacity: 0.7;
    font-size: 0.9em;
    border-left: 1px solid var(--color-border);
    padding-left: 12px;
}

/* --- Ensure cell styles are retained --- */
.calendar-cell[b-bjy5k0j91n] {
    width: 48px;
    height: 48px;
    border-radius: 2px; /* Square look */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: default;
    transition: transform 0.1s;
    border: 1px solid rgba(0,0,0,0.05);
}
.calendar-cell:hover[b-bjy5k0j91n] {
    z-index: 10;
    border: 1px solid white;
    transform: scale(1.1);
}

/* --- GRID LAYOUT --- */
.heatmaps-grid[b-bjy5k0j91n] {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: flex-start;
}

.heatmap-section[b-bjy5k0j91n] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    flex: 1 1 350px;
    max-width: 100%;
    min-width: 350px;
}

.section-title[b-bjy5k0j91n] {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--color-text-primary);
    text-align: center;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 6px;
    width: fit-content;
}

/* --- CALENDAR STYLES --- */
.calendar-wrapper[b-bjy5k0j91n] {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px; /* Standard rounded corner */
    padding: 12px;
    width: fit-content;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.calendar-grid[b-bjy5k0j91n] {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px; /* Increased gap to prevent highlight overlap */
}

/* Day Headers */
.calendar-header-cell[b-bjy5k0j91n] {
    color: var(--color-text-secondary);
    font-weight: 700;
    font-size: 0.8em;
    text-align: center;
    padding-bottom: 6px;
    text-transform: uppercase;
}

/* Day Cells */
.calendar-cell[b-bjy5k0j91n] {
    width: 48px;
    height: 48px;

    /* CHANGE: Reduced radius significantly to look "square" */
    border-radius: 2px;

    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: default;
    transition: transform 0.1s, filter 0.1s;
    border: 1px solid rgba(0,0,0,0.05); /* Slight border for definition */
}

.calendar-cell:hover[b-bjy5k0j91n] {
    z-index: 150;
    border: 1px solid white; /* Highlight border on hover */
    transform: scale(1.1);
}

.highlight-max[b-bjy5k0j91n] {
    outline: 2px solid #fff;
    outline-offset: 1px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    z-index: 100;
    font-weight: 800 !important;
    transform: scale(1.1);
}

.highlight-min[b-bjy5k0j91n] {
    outline: 2px solid #ff4d4f;
    outline-offset: 1px;
    background-image: linear-gradient(rgba(255, 77, 79, 0.2), rgba(255, 77, 79, 0.2)) !important;
    z-index: 50;
    font-weight: 700 !important;
}

.cell-date[b-bjy5k0j91n] {
    position: absolute;
    top: 2px;
    left: 4px;
    font-size: 0.65em;
    opacity: 0.7;
    font-weight: 600;
}

.cell-value[b-bjy5k0j91n] {
    font-weight: 700;
    font-size: 0.9em;
    line-height: 1;
    margin-top: 8px;
}

.empty-cell[b-bjy5k0j91n] {
    background-color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    border-radius: 2px;
}

/* --- UTILS --- */
.loading-container[b-bjy5k0j91n] {
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--color-text-secondary);
}

.info-message[b-bjy5k0j91n] {
    text-align: center;
    color: var(--color-text-secondary);
    margin-top: 40px;
    font-size: 1.1em;
}

.max-badge[b-bjy5k0j91n] {
    display: block;
    font-size: 0.75em;
    font-weight: 400;
    color: var(--color-text-secondary);
    margin-top: 2px;
    opacity: 0.8;
}
/* /Components/Pages/Analytics/PeakAnalysis.razor.rz.scp.css */
/* --- PAGE LAYOUT --- */
.analytics-container[b-j7mnj0kcg5] {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}



/* --- LEGEND STYLES --- */
.legend-bar[b-j7mnj0kcg5] {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 4px 16px;
    background-color: transparent;
    border-radius: 8px;
    font-size: 0.85em;
    justify-content: flex-end;
    color: var(--color-text-secondary);

    pointer-events: none;
    position: relative;
    z-index: 10;
}

/* ... (Keep Legend inner styles same) ... */
.legend-title[b-j7mnj0kcg5] { font-weight: 700; color: var(--color-text-primary); pointer-events: auto; }
.legend-group[b-j7mnj0kcg5] { display: flex; align-items: center; gap: 6px; pointer-events: auto; }
.l-gradient[b-j7mnj0kcg5] { width: 30px; height: 12px; border-radius: 2px; border: 1px solid rgba(255,255,255,0.1); display: inline-block; }
.l-label[b-j7mnj0kcg5] { font-weight: 500; }
.legend-subtitle[b-j7mnj0kcg5] { margin-left: 8px; font-style: italic; opacity: 0.7; font-size: 0.9em; border-left: 1px solid var(--color-border); padding-left: 12px; }
.max-badge[b-j7mnj0kcg5] { display: block; font-size: 0.75em; font-weight: 400; color: var(--color-text-secondary); margin-top: 2px; opacity: 0.8; }


/* ... (Keep Grid/Table styles same) ... */
.heatmaps-grid[b-j7mnj0kcg5] { display: flex; flex-wrap: wrap; gap: 32px; justify-content: center; align-items: flex-start; margin-top: 12px; }
.heatmap-section[b-j7mnj0kcg5] { display: flex; flex-direction: column; gap: 8px; align-items: center; flex: 1 1 500px; max-width: 100%; min-width: 0; }
.section-title[b-j7mnj0kcg5] { font-size: 1.1em; font-weight: 700; color: var(--color-text-primary); text-align: center; border-bottom: 2px solid var(--color-accent); padding-bottom: 6px; margin-bottom: 12px; }
.table-wrapper[b-j7mnj0kcg5] { overflow-x: auto; border-radius: 8px; border: 1px solid var(--color-border); background-color: var(--color-card-bg); width: fit-content; max-width: 100%; padding: 4px; }
.compact-heatmap-table[b-j7mnj0kcg5] { border-collapse: separate; border-spacing: 4px; font-size: 0.85em; }
.compact-heatmap-table th[b-j7mnj0kcg5], .compact-heatmap-table td[b-j7mnj0kcg5] { padding: 4px 6px; border-bottom: 1px solid rgba(255,255,255,0.05); border-right: 1px solid rgba(255,255,255,0.05); text-align: center; vertical-align: middle; border-radius: 2px; }
.compact-heatmap-table tr:last-child td[b-j7mnj0kcg5] { border-bottom: none; }
.compact-heatmap-table th:last-child[b-j7mnj0kcg5], .compact-heatmap-table td:last-child[b-j7mnj0kcg5] { border-right: none; }
.corner-header[b-j7mnj0kcg5] { background-color: var(--color-background); z-index: 10; position: sticky; top: 0; left: 0; border-bottom: 2px solid var(--color-border) !important; border-right: 2px solid var(--color-border) !important; }
.day-header[b-j7mnj0kcg5] { background-color: var(--color-background); color: var(--color-text-primary); font-weight: 600; position: sticky; top: 0; z-index: 5; border-bottom: 2px solid var(--color-border) !important; padding: 8px; }
.hour-header[b-j7mnj0kcg5] { background-color: var(--color-background); color: var(--color-text-secondary); font-weight: 600; position: sticky; left: 0; z-index: 5; border-right: 2px solid var(--color-border) !important; white-space: nowrap; text-align: center !important; font-size: 0.85em; padding: 0 8px; }
.heatmap-cell[b-j7mnj0kcg5] { width: 56px; min-width: 56px; height: 24px; font-family: 'Segoe UI', monospace; font-weight: 500; transition: filter 0.2s; }
.heatmap-cell:hover[b-j7mnj0kcg5] { filter: brightness(1.2); box-shadow: inset 0 0 0 2px white; cursor: default; }

.highlight-max[b-j7mnj0kcg5] {
    outline: 2px solid #fff;
    outline-offset: 1px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    z-index: 100;
    font-weight: 800 !important;
    position: relative;
}

.highlight-min[b-j7mnj0kcg5] {
    outline: 2px solid #ff4d4f;
    outline-offset: 1px;
    background-image: linear-gradient(rgba(255, 77, 79, 0.2), rgba(255, 77, 79, 0.2)) !important;
    z-index: 50;
    font-weight: 700 !important;
    position: relative;
}

.loading-container[b-j7mnj0kcg5] { padding: 40px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--color-text-secondary); }
.info-message[b-j7mnj0kcg5] { text-align: center; color: var(--color-text-secondary); margin-top: 40px; font-size: 1.1em; }
/* /Components/Pages/Analytics/ShowComparisons.razor.rz.scp.css */
.custom-date-display:disabled[b-wu4en040xn] {
    opacity: 0.6;
    cursor: not-allowed;
}

.info-subtext[b-wu4en040xn] {
    display: block;
    font-weight: normal;
    font-size: 0.8em;
    color: var(--color-text-secondary);
    margin-top: 4px;
    font-style: italic;
}

.comparison-dates-display[b-wu4en040xn] { display: flex; align-items: center; gap: 12px; padding: 12px; margin: 8px 0; background-color: var(--color-background); border-radius: 4px; border: 1px solid var(--color-border); flex-wrap: wrap; }
.comparison-dates-display label[b-wu4en040xn] { font-weight: 600; color: var(--color-text-secondary); margin-bottom: 0; }
.dates-list[b-wu4en040xn] { display: flex; gap: 8px; flex-wrap: wrap; }
.date-badge[b-wu4en040xn] { color: white; padding: 4px 10px; border-radius: 12px; font-size: 0.85em; display: flex; align-items: center; gap: 6px; text-shadow: 0 0 4px rgb(0 0 0); }

.analytics-dashboard-grid[b-wu4en040xn] {
    display: flex;
    gap: 8px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

.dashboard-card.wide[b-wu4en040xn] {
    grid-column: span 2;
}

.chart-wrapper[b-wu4en040xn] {
    position: relative;
    width: 100%;
}

.stickiness-container[b-wu4en040xn] {
    padding: 12px;
}

.dashboard-card[b-wu4en040xn] {
    background: var(--color-card-bg);
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.chart-label[b-wu4en040xn] {
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xs);
}

.stickiness-grid[b-wu4en040xn] {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stickiness-item[b-wu4en040xn] {
    position: relative;
    border-left: 4px solid var(--color-border);
    padding-left: 12px;
}

.chart-wrapper.small-chart[b-wu4en040xn] {
    height: 220px;
}

.loading-indicator.mini[b-wu4en040xn] {
    height: 220px;
}
/* /Components/Pages/Historical/HistoricalBreakdowns.razor.rz.scp.css */
.mount-label[b-o6m4fkysie] {
    border-radius: 12px;
    box-shadow: 1px 1px 1px 0 black;
    background-color: #086b00;
    color: white;
    text-shadow: -1px -1px 0 black, 1px -1px 1px black, -1px 1px 1px black, 1px 1px 1px black;
    font-size: 0.6rem;
    font-weight: 500;
    padding: 2px 8px;
    cursor: pointer;
    align-self: center;
}

.mount-label:hover[b-o6m4fkysie] {
    box-shadow: 2px 2px 2px 0 black;
    background-color: #ff0000 !important;
    color: white;
}

.mount-label-container[b-o6m4fkysie] {
    overflow-y: auto;
    max-height: 75px;
    border: 1px solid var(--color-border); /* <-- CHANGED */
    background-color: var(--color-background); /* <-- CHANGED */
    border-radius: 5px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    padding: 4px;
}

/* Informational message style */
.info-message[b-o6m4fkysie] {
    font-size: 0.8em;
    font-weight: 600;
    color: #b3e0ff; /* <-- CHANGED (Light blue text) */
    text-align: center;
    padding: 0 12px;
    background-color: #003c57; /* <-- CHANGED (Dark blue bg) */
    border: 1px solid #0dcaf0; /* <-- CHANGED (Radzen info border) */
    border-radius: 12px;
    margin: 0 auto 3px auto;
    max-width: 1200px;
    width: fit-content;
}
/* /Components/Pages/Historical/HistoricalComparisons.razor.rz.scp.css */
/* Styles specific to the Comparison Page */


/* --- Week Range Display --- */
.week-range-display[b-pvnnpwfhuo] {
    font-size: 0.8em;
    color: var(--color-text-secondary); /* <-- CHANGED */
    margin-left: -4px; /* Adjust spacing */
    white-space: nowrap;
}

/* --- Comparison Dates Display --- */
.comparison-dates-display[b-pvnnpwfhuo] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px;
    margin: 4px;
    background-color: var(--color-background); /* <-- CHANGED */
    border-radius: 4px;
    border: 1px solid var(--color-border); /* <-- CHANGED */
    flex-wrap: wrap; /* Allow wrapping if many dates */
}

.comparison-dates-display label[b-pvnnpwfhuo] {
    font-weight: 600;
    color: var(--color-text-secondary); /* <-- CHANGED */
    margin-bottom: 0; /* Override default label margin if any */
}

.dates-list[b-pvnnpwfhuo] {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.date-badge[b-pvnnpwfhuo] {
    background-color: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 12px; /* Pill shape */
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 4px;
    text-shadow: 0 0 4px rgb(0 0 0);
}

.remove-date-btn[b-pvnnpwfhuo] {
    background: none;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    margin-left: 2px;
    opacity: 0.7;
}

.remove-date-btn:hover[b-pvnnpwfhuo] {
    opacity: 1;
}

/* --- Chart Styling --- */
.container-fluid[b-pvnnpwfhuo] {
    margin-top: 1rem;
}
.col-lg-6[b-pvnnpwfhuo] {
    margin-bottom: 1.5rem;
}
.chart-wrapper[b-pvnnpwfhuo] {
    position: relative;
    height: 300px;
    width: 100%;
}

/* --- General Message Styles --- */
.error-message[b-pvnnpwfhuo] {
    color: #f8d7da; /* <-- CHANGED */
    font-weight: bold;
    padding: 10px;
    border: 1px solid #dc3545; /* <-- CHANGED */
    background-color: #572020; /* <-- CHANGED */
    border-radius: 4px;
    margin: 10px 0;
    white-space: pre-line;
}

.no-data-message[b-pvnnpwfhuo] {
    color: #ffc107; /* <-- CHANGED */
    font-weight: bold;
    padding: 10px;
    border: 1px solid #ffc107; /* <-- CHANGED */
    background-color: #573a00; /* <-- CHANGED */
    border-radius: 4px;
    margin: 10px 0;
}

.user-bar-control-group + .rz-message-error[b-pvnnpwfhuo] {
    margin-left: 8px;
}


/* --- Page Loading Overlay --- */
.page-loading-overlay[b-pvnnpwfhuo] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(40, 49, 60, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.spinner[b-pvnnpwfhuo] {
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-left-color: #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin-b-pvnnpwfhuo 1s linear infinite;
}

@keyframes spin-b-pvnnpwfhuo {
    to { transform: rotate(360deg); }
}

/* Radzen Grid minimum width */
.min-width-1400[b-pvnnpwfhuo] {
    min-width: 1400px;
}

/* Align numeric cells better */
.pretty-radzen-grid .rz-grid-table tbody td.numeric-cell-padding[b-pvnnpwfhuo] {
    padding-right: 24px !important;
}

.add-date-section[b-pvnnpwfhuo] {
    position: relative; /* Make this the positioning context for the dropdown */
}

/* Position the conditionally rendered ComparisonDatePicker dropdown */
.add-date-section[b-pvnnpwfhuo]  .comp-datepicker-dropdown {
    position: absolute;
    top: 14px;
    left: -150px;
    z-index: 1051;
    margin-top: 4px; /* Small gap */
}

.header-summary-container[b-pvnnpwfhuo] {
    display: flex;
    flex-direction: row;
    gap: 16px;
    padding: 12px 8px;
    margin: 8px 0;
    background-color: var(--color-background); /* <-- CHANGED */
    border: 1px solid var(--color-border); /* <-- CHANGED */
    border-radius: 4px;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.comparison-summary-card[b-pvnnpwfhuo] {
    flex: 0 0 auto; /* Don't grow or shrink */
    width: 320px; /* Width for the sequential cards */
    background-color: var(--color-card-bg); /* <-- CHANGED */
    border: 1px solid var(--color-border); /* <-- CHANGED */
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 8px;
}

/* New style for the prominent "Base Date Comparison" Card */
.primary-summary-card[b-pvnnpwfhuo] {
    border: 2px solid var(--color-accent); /* <-- CHANGED */
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2); /* <-- CHANGED */
    width: 100%;
    max-width: 500px;
}

/* Use existing date-badge style but center it */
.comparison-summary-card .date-badge[b-pvnnpwfhuo] {
    display: block;
    text-align: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding: 4px 10px; /* More padding */
    border-radius: 12px;
    font-size: 0.9em; /* Slightly larger */
    font-weight: 600;
    color: white;
}

.comparison-stat-grid[b-pvnnpwfhuo] {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px 12px;
}

/* Specific Grid for the Base Comparison Card (Base vs All Dates) */
.primary-summary-card .comparison-stat-grid[b-pvnnpwfhuo] {
    gap: 4px 12px;
}

.comparison-stat-item[b-pvnnpwfhuo] {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Center label and values vertically */
    font-size: 0.9em;
    border-bottom: 1px solid var(--color-border); /* <-- CHANGED */
    padding: 4px 0;
}

.comparison-stat-item.header-row[b-pvnnpwfhuo] {
    font-weight: 700;
    color: var(--color-text-primary);
    border-bottom: 2px solid var(--color-border);
    justify-content: space-between; /* Aligns "Metric" left and "(Base Value)" right */
    font-size: 1.1em;
    width: 100%; /* Changed from fit-content to fill the space */

    /* --- ADDED FOR STICKY --- */
    position: sticky;
    top: 0;
    background-color: var(--color-card-bg); /* Match the card bg to hide scrolling text */
    z-index: 2; /* Ensure it stays on top */
}

.comparison-stat-item .stat-label[b-pvnnpwfhuo] {
    font-weight: 600;
    color: var(--color-text-secondary); /* <-- CHANGED */
    flex-shrink: 0;
}

.stat-values-container[b-pvnnpwfhuo] {
    display: flex;
    flex-direction: column; /* Stack values vertically on sequential cards */
    align-items: flex-end;   /* Align values to the right */
    gap: 4px;
}

/* Override for the primary card to show row layout */
.primary-summary-card .stat-values-container[b-pvnnpwfhuo] {
    flex-direction: row; /* Side-by-side */
    align-items: baseline;
    gap: 8px;
}

.stat-value-row[b-pvnnpwfhuo] {
    display: flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
}

.stat-value-label[b-pvnnpwfhuo] {
    font-size: 0.85em;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

/* Style for the comparison date label on the primary card */
.comparison-stat-item.base-line .vs-comp-label[b-pvnnpwfhuo] {
    font-weight: 500;
    font-size: 0.95em;
    flex-grow: 1;
    text-align: left;
    min-width: 130px; /* Give date label space */
}

.comparison-stat-item .stat-value-change[b-pvnnpwfhuo] {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 1.0em;
    white-space: nowrap;
}

/* Color and Triangles */
.change-positive[b-pvnnpwfhuo] {
    color: #28a745; /* Green */
}
.change-positive[b-pvnnpwfhuo]::after {
    content: ' ▲';
    font-size: 0.8em;
}

.change-negative[b-pvnnpwfhuo] {
    color: #dc3545; /* Red */
}
.change-negative[b-pvnnpwfhuo]::after {
    content: ' ▼';
    font-size: 0.8em;
}

.change-neutral[b-pvnnpwfhuo] {
    color: #6c757d; /* Grey */
}

/* Make the primary card's content scrollable */
.primary-card-content[b-pvnnpwfhuo] {
    overflow-y: auto;
    padding-right: 10px; /* Space for scrollbar */
    max-height: 500px;
}

/* New styles for the raw values */
.base-value[b-pvnnpwfhuo] {
    font-size: 0.9em;
    font-weight: 700;
    color: var(--color-accent); /* <-- CHANGED */
}

.comp-value[b-pvnnpwfhuo] {
    font-size: 1em;
    font-weight: 600;
    color: var(--color-text-primary); /* <-- CHANGED */
    min-width: 60px; /* Give numbers space */
    text-align: right;
}

/* --- NEW: Styles for HOURLY Grid Card --- */
.hourly-grid-card[b-pvnnpwfhuo] {
    min-width: 90vw; /* Make the hourly card take most of the viewport width */
    max-width: 90vw;
}

/* Make the primary card's content scrollable */
.hourly-grid-card .primary-card-content[b-pvnnpwfhuo] {
    overflow-y: auto;
    padding-right: 10px; /* Space for scrollbar */
    max-height: initial;
}

/* ** THIS IS THE KEY CHANGE: Use Flexbox **
*/
.hourly-metric-container[b-pvnnpwfhuo] {
    display: flex;
    flex-wrap: wrap; /* Allow cards to wrap to the next line */
    gap: 8px;
    justify-content: space-evenly;
}

/* A single metric group (e.g., "Total Hours") */
.metric-group[b-pvnnpwfhuo] {
    min-width: 300px;
    max-width: 560px;
    margin-bottom: 12px;
}
/* ** END KEY CHANGE **
*/


.hourly-metric-grid[b-pvnnpwfhuo] {
    width: 100%;
    border-top: 1px solid var(--color-border); /* <-- CHANGED */
    /* Tighter padding */
    --rz-grid-cell-padding: 3px 6px;
    /* Smaller font for the grid */
    font-size: 0.85em;
}

/* Smaller font for Radzen headers */
.hourly-metric-grid .rz-grid-header-cell[b-pvnnpwfhuo] {
    padding: 4px 8px;
    position: sticky;
    top: 48px; /* This pushes it just below the main sticky header */
    background-color: var(--color-card-bg);
    z-index: 1;
}

.hourly-cell[b-pvnnpwfhuo] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px; /* Tighter gap */
}

.hourly-value[b-pvnnpwfhuo] {
    font-weight: 600;
    font-size: 0.9em; /* Smaller font for the raw value */
}

.hourly-changes[b-pvnnpwfhuo] {
    display: flex;
    gap: 2px; /* Tighter gap */
}

.hourly-changes .stat-value-change[b-pvnnpwfhuo] {
    font-size: 0.8em; /* Smaller font for percentages */
    white-space: nowrap; /* Prevent % from wrapping */
}

.hourly-changes .stat-value-change.vs-prev[b-pvnnpwfhuo] {
    color: #aaa; /* <-- CHANGED (brighter grey) */
    font-weight: 500;
}

.header-row[b-pvnnpwfhuo] {
    display: flex;
    flex-direction: column; /* Stack title and label vertically */
    align-items: center;
    justify-content: center;
    row-gap: 2px; /* Small gap between title and label */
    padding-bottom: 4px;
}

/* --- UPDATED: Hourly Dynamic Label --- */
.hourly-dynamic-label[b-pvnnpwfhuo] {
    display: block;
    font-size: 0.75em; /* Smaller font */
    font-weight: 600;
    color: #60a5fa; /* <-- CHANGED (brighter blue) */
    background-color: transparent;
    border-radius: 4px;
    padding: 0;
    margin: 0;
    min-height: 1.2em; /* Reserve space to prevent layout jump */
    transition: none;
    text-align: center;
}

.hourly-metric-grid .rz-grid-header-cell span[b-pvnnpwfhuo] {
    text-shadow: 0 0 4px rgb(0 0 0);
}

.info-message[b-pvnnpwfhuo] {
    font-size: 1.1em;
    font-weight: 600;
    color: #b3e0ff;
    text-align: center;
    padding: 12px 16px;
    background-color: #003c57;
    border: 1px solid #0dcaf0;
    border-radius: 4px;
    margin: 10px 0;
}

/* --- Inverted Comparison Table Styles --- */

.comparison-matrix-table[b-pvnnpwfhuo] {
    background-color: var(--color-card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}
.comparison-matrix-table th[b-pvnnpwfhuo],
.comparison-matrix-table td[b-pvnnpwfhuo] {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    font-size: var(--text-sm);
}
.metric-name.compact-text[b-pvnnpwfhuo], .compact-text[b-pvnnpwfhuo] {
    font-size: var(--text-xs); /* Replace 0.85em */
}

.comparison-matrix-table th:last-child[b-pvnnpwfhuo],
.comparison-matrix-table td:last-child[b-pvnnpwfhuo] {
    border-right: none;
}

.comparison-matrix-table tr:last-child td[b-pvnnpwfhuo] {
    border-bottom: none;
}

/* --- Headers --- */
.corner-header[b-pvnnpwfhuo] {
    background-color: var(--color-background);
    color: var(--color-text-secondary);
    font-weight: 700;
    text-align: left;
    border-top-left-radius: 8px;

    /* Fix row header width */
    width: 140px;
    min-width: 140px;
    max-width: 140px;

    position: sticky;
    left: 0;
    z-index: 5;
    border-right: 2px solid var(--color-border);
}

.metric-header[b-pvnnpwfhuo] {
    background-color: var(--color-background);
    color: var(--color-text-primary);
    font-weight: 600;
    text-align: center;
    white-space: nowrap; /* Keep titles on one line */
}

.metric-header:last-child[b-pvnnpwfhuo] {
    border-top-right-radius: 8px;
}

/* --- Date Column (Row Header) --- */
.date-cell[b-pvnnpwfhuo] {
    cursor: pointer;
    position: sticky; /* Keep dates visible when scrolling right */
    left: 0;
    background-color: var(--color-card-bg); /* Opaque bg for sticky */
    z-index: 2;
    transition: background-color 0.2s;
}

.date-cell:hover[b-pvnnpwfhuo] {
    filter: brightness(1.2);
}

.date-cell.active-base[b-pvnnpwfhuo] {
    box-shadow: inset -3px 0 0 0 rgba(255, 255, 255, 0.2); /* Highlight right border */
}

.date-wrapper[b-pvnnpwfhuo] {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.date-badge[b-pvnnpwfhuo] {
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9em;
    white-space: nowrap;
}

.base-indicator[b-pvnnpwfhuo] {
    font-size: 0.75em;
    color: var(--color-text-secondary);
    font-style: italic;
}

/* --- Data Cells --- */
.data-cell[b-pvnnpwfhuo] {
    vertical-align: middle;
}

/* Cell Layout: % Left, Value Right */
.cell-wrapper[b-pvnnpwfhuo] {
    display: flex;
    justify-content: space-between; /* Push items to edges */
    align-items: center;
    gap: 16px;
}

.cell-value[b-pvnnpwfhuo] {
    font-weight: 600;
    color: var(--color-text-primary);
    text-align: right;
    flex-grow: 1;
    font-size: 1.1em; /* Keep numbers readable */
}

.cell-diff[b-pvnnpwfhuo] {
    font-weight: 700;
    font-size: 0.9em;
    padding: 2px 8px;
    border-radius: 4px;
    min-width: 55px; /* Fixed width to ensure values align vertically */
    text-align: center;
}

/* Colors */
.diff-positive[b-pvnnpwfhuo] {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.15);
}

.diff-negative[b-pvnnpwfhuo] {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.15);
}

.diff-neutral[b-pvnnpwfhuo] {
    color: #6c757d;
    opacity: 0.3;
}

/* --- Hourly Controls --- */
.hourly-controls[b-pvnnpwfhuo] {
    background-color: var(--color-card-bg);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

/* Override Radzen SelectBar to match Dark Theme */
[b-pvnnpwfhuo] .hourly-metric-selector .rz-selectbar-item {
    background-color: var(--color-background);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    font-weight: 600;
    font-size: 0.9em;
    padding: 4px 16px;
}

[b-pvnnpwfhuo] .hourly-metric-selector .rz-selectbar-item.rz-state-active {
    background-color: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

[b-pvnnpwfhuo] .hourly-metric-selector .rz-selectbar-item:hover:not(.rz-state-active) {
    background-color: var(--color-border);
    color: white;
}

.date-header[b-pvnnpwfhuo] {
    cursor: pointer !important; /* Force pointer */
    text-align: center;
    transition: all 0.2s ease;
    background-color: var(--color-card-bg);
    font-weight: 600;
    font-size: 1.05em;
    user-select: none;
}

.hour-cell[b-pvnnpwfhuo] {
    /* Sticky Positioning */
    position: sticky;
    left: 0;
    z-index: 4; /* Higher than data (0), lower than header (5) */

    /* Visuals */
    background-color: var(--color-card-bg);
    border-right: 2px solid var(--color-border);
    font-weight: 600;
    color: var(--color-text-primary);
}
/* /Components/Pages/Historical/HistoricalReports.razor.rz.scp.css */

/* Copied from V3HReports for chart layout */
.container-fluid[b-51kh99c7h5] {
    margin-top: 1rem;
}
.col-lg-6[b-51kh99c7h5] {
    margin-bottom: 1.5rem;
}

/* Wrapper for charts to respect card padding */
.chart-wrapper[b-51kh99c7h5] {
    position: relative;
    height: 300px; /* Reduced height from 350px */
    width: 100%;
}
/* /Components/Pages/Historical/HistoricalStations.razor.rz.scp.css */
.grid-no-totals[b-mmzbvz1c73]  .pretty-radzen-grid .rz-grid-table tfoot {
    display: none;
}

/* Responsive Footer for HistoricalStations Grid */
@media (max-width: 768px) {
    /* Find the grid on this page and apply responsive footer */
    [b-mmzbvz1c73] .pretty-radzen-grid .rz-grid-table tfoot {
        display: block;
    }

    [b-mmzbvz1c73] .pretty-radzen-grid .rz-grid-table tfoot tr {
        display: block;
        margin-bottom: 1rem;
        border: 2px solid var(--color-accent); /* Make it look like a card */
        border-radius: 4px;
        background-color: var(--color-background);
    }

    /* 1. Make the <td> a flex container */
    [b-mmzbvz1c73] .pretty-radzen-grid .rz-grid-table tfoot td {
        display: flex; /* Use flex */
        align-items: baseline; /* Align text baselines */
        border: none !important;
        border-bottom: 1px solid var(--color-border) !important;
        padding: 0.5rem 0.75rem !important;
        line-height: 1.4; /* Give text room to wrap */
    }

    [b-mmzbvz1c73] .pretty-radzen-grid .rz-grid-table tfoot tr td:last-child {
        border-bottom: none !important;
    }

    /* 2. Style the ::before pseudo-element (the label) */
    [b-mmzbvz1c73] .pretty-radzen-grid .rz-grid-table tfoot td::before {
        content: 'ΣΤΑΘΜΟΣ:'; /* Default, will be overridden */
        font-weight: bold;
        color: var(--color-text-secondary);
        text-align: left;
        padding-right: 0.5rem;
        flex-shrink: 0; /* Don't let the label shrink */
    }

    /* 3. Style the <span> element (the value wrapper) */
    [b-mmzbvz1c73] .pretty-radzen-grid .rz-grid-table tfoot td .rz-column-footer {
        flex-grow: 1; /* Take all remaining space */
        text-align: right; /* Default to right-align for numbers */
        font-weight: bold;
        word-break: break-word; /* Allow long values to wrap */
        padding-left: 8px; /* Space between label and value */
    }

    /* 4. Add the labels */
    [b-mmzbvz1c73] .pretty-radzen-grid .rz-grid-table tfoot td:nth-child(2)::before { content: 'ΣΤΑΘΜΟΣ:'; }
    [b-mmzbvz1c73] .pretty-radzen-grid .rz-grid-table tfoot td:nth-child(3)::before { content: 'ΣΥΝ.ΩΡΕΣ:'; }
    [b-mmzbvz1c73] .pretty-radzen-grid .rz-grid-table tfoot td:nth-child(4)::before { content: 'Μ.Ο.ΑΚΡΟΑΣΗΣ:'; }
    [b-mmzbvz1c73] .pretty-radzen-grid .rz-grid-table tfoot td:nth-child(5)::before { content: 'ACTIVE(>1Λ.):'; }
    [b-mmzbvz1c73] .pretty-radzen-grid .rz-grid-table tfoot td:nth-child(6)::before { content: 'UNIQUE:'; }
    [b-mmzbvz1c73] .pretty-radzen-grid .rz-grid-table tfoot td:nth-child(7)::before { content: 'SESSIONS/USER:'; }
    [b-mmzbvz1c73] .pretty-radzen-grid .rz-grid-table tfoot td:nth-child(8)::before { content: 'ΝΕΕΣ ΣΥΝΔΕΣΕΙΣ:'; }
    [b-mmzbvz1c73] .pretty-radzen-grid .rz-grid-table tfoot td:nth-child(9)::before { content: 'RETENTION:'; }
    [b-mmzbvz1c73] .pretty-radzen-grid .rz-grid-table tfoot td:nth-child(10)::before { content: 'PEAK:'; }
    [b-mmzbvz1c73] .pretty-radzen-grid .rz-grid-table tfoot td:nth-child(11)::before { content: 'ΧΡΟΝΟΣ PEAK:'; }
    

    /* 6. Hide the empty icon cell */
    [b-mmzbvz1c73] .pretty-radzen-grid .rz-grid-table tfoot td:nth-child(1) {
        display: none;
    }
}
/* /Components/Pages/Historical/Influx.razor.rz.scp.css */
.stats-grid-container[b-svw73q9cnw] {
    flex: 2 1 500px; /* Stats grid takes less space */
    padding: 16px;
}

/* Style for the timestamp in the stats grid */
.stats-time[b-svw73q9cnw] {
    font-size: 0.8em;
    color: #a9a9a9;
    margin-top: 2px;
}

.rz-grid-table thead th[b-svw73q9cnw] {
    padding: 0 8px 0 8px !important;
}

.station-cell[b-svw73q9cnw] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-dot[b-svw73q9cnw] {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.station-table-image[b-svw73q9cnw] {
    width: 40px;
    object-fit: contain;
    border-radius: 3px;
    flex-shrink: 0;
}

.chart-container[b-svw73q9cnw] {
    display: flex; /* <-- ADD THIS */
    flex-direction: column;
    height: 750px; /* Desktop height */
}

.chart-wrapper[b-svw73q9cnw] {
    flex-grow: 1;
    height: 100%;
}

@media (max-width: 767px) {
    .chart-container[b-svw73q9cnw] {
        height: 570px; /* Mobile height */
    }
}
/* /Components/Pages/Historical/SongData.razor.rz.scp.css */
.song-data-header[b-3zk9iwugnh] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 8px;
}

.song-data-header h5[b-3zk9iwugnh] {
    margin: 0;
    color: #e5e7eb;
    font-weight: 600;
}

.song-count-badge[b-3zk9iwugnh] {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.chart-container[b-3zk9iwugnh] {
    position: relative;
    height: 380px;
    padding: 8px 16px;
    margin-bottom: 16px;
    background: rgba(30, 30, 30, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Color dot indicator */
.song-color-dot[b-3zk9iwugnh] {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    vertical-align: middle;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.15);
}

/* Song title — truncate with ellipsis */
.song-title-cell[b-3zk9iwugnh] {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    color: #e5e7eb;
}

/* Duration pill-style */
.duration-cell[b-3zk9iwugnh] {
    font-family: 'Cascadia Mono', 'Consolas', monospace;
    font-size: 0.85rem;
    color: #9ca3af;
}

/* Positive/negative values */
.value-positive[b-3zk9iwugnh] {
    color: #4ade80;
    font-weight: 600;
}

.value-negative[b-3zk9iwugnh] {
    color: #f87171;
    font-weight: 600;
}

/* Subtle positive/negative for CPM */
.value-positive-subtle[b-3zk9iwugnh] {
    color: #86efac;
}

.value-negative-subtle[b-3zk9iwugnh] {
    color: #fca5a5;
}

/* Generic subtle metric color */
.metric-subtle[b-3zk9iwugnh] {
    color: #9ca3af;
}

/* Rating badge styling */
.rating-badge[b-3zk9iwugnh] {
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: -0.01em;
}

/* Incomplete duration styling */
.duration-incomplete[b-3zk9iwugnh] {
    color: #f59e0b;
    font-style: italic;
}

/* Metrics Info Box */
.metrics-info-box[b-3zk9iwugnh] {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.metrics-info-box h6[b-3zk9iwugnh] {
    margin-top: 0;
    margin-bottom: 12px;
    color: #93c5fd;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.metrics-grid[b-3zk9iwugnh] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.metric-item[b-3zk9iwugnh] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-title[b-3zk9iwugnh] {
    font-weight: 600;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.metric-desc[b-3zk9iwugnh] {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.4;
}

/* Row hover highlight via table hover */
[b-3zk9iwugnh] .song-data-grid .rz-data-row:hover {
    background-color: rgba(59, 130, 246, 0.08) !important;
    transition: background-color 0.15s ease;
}

/* Header tooltips — add a subtle underline hint */
[b-3zk9iwugnh] .song-data-grid th span[title] {
    border-bottom: 1px dotted rgba(156, 163, 175, 0.4);
    cursor: help;
}

/* Tighten column padding on this dense grid */
[b-3zk9iwugnh] .song-data-grid .rz-cell {
    padding: 4px 8px !important;
}

/* Table scroll wrapper — height is set by JS after chart renders */
.song-data-table-wrapper[b-3zk9iwugnh] {
    overflow-y: auto;
    overflow-x: auto;
}

/* Ensure no internal Radzen overflow container blocks position:sticky */
[b-3zk9iwugnh] .song-data-grid {
    overflow: visible !important;
}

/* Sticky table header — top:0 relative to .song-data-table-wrapper scroll context */
[b-3zk9iwugnh] .song-data-grid thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #111827 !important;
    border-bottom: 2px solid #007989 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

[b-3zk9iwugnh] .song-data-grid .rz-column-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #94a3b8;
    text-transform: uppercase;
}
/* /Components/Pages/Historical/SongPlays.razor.rz.scp.css */
.song-plays-toolbar[b-kjji2ydqb4] {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: var(--color-background);
}

.song-plays-preset-btn[b-kjji2ydqb4] {
    background: rgba(255,255,255,0.05);
    color: #9ca3af;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.song-plays-preset-btn:hover[b-kjji2ydqb4] {
    background: rgba(255,255,255,0.1);
    color: #e5e7eb;
}

.song-plays-preset-btn.active[b-kjji2ydqb4] {
    background: rgba(59, 130, 246, 0.25);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.4);
}

.song-plays-range-label[b-kjji2ydqb4] {
    margin-left: 8px;
    font-size: 0.8rem;
    color: #6b7280;
}

.song-data-header[b-kjji2ydqb4] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 8px;
}

.song-data-header h5[b-kjji2ydqb4] {
    margin: 0;
    color: #e5e7eb;
    font-weight: 600;
}

.song-count-badge[b-kjji2ydqb4] {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.duration-cell[b-kjji2ydqb4] {
    font-family: 'Cascadia Mono', 'Consolas', monospace;
    font-size: 0.85rem;
    color: #9ca3af;
}

.duration-incomplete[b-kjji2ydqb4] {
    color: #f59e0b;
    font-style: italic;
}

.value-positive[b-kjji2ydqb4] { color: #4ade80; font-weight: 600; }
.value-negative[b-kjji2ydqb4] { color: #f87171; font-weight: 600; }
.value-positive-subtle[b-kjji2ydqb4] { color: #86efac; }
.value-negative-subtle[b-kjji2ydqb4] { color: #fca5a5; }

.rating-badge[b-kjji2ydqb4] {
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: -0.01em;
}

[b-kjji2ydqb4] .song-data-grid .rz-data-row:hover {
    background-color: rgba(59, 130, 246, 0.08) !important;
    transition: background-color 0.15s ease;
}

[b-kjji2ydqb4] .song-data-grid th span[title] {
    border-bottom: 1px dotted rgba(156, 163, 175, 0.4);
    cursor: help;
}

[b-kjji2ydqb4] .song-data-grid .rz-cell {
    padding: 4px 8px !important;
}

[b-kjji2ydqb4] .song-data-grid .rz-column-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #6b7280;
}
/* /Components/Pages/Home.razor.rz.scp.css */
/* This sets the height for the chart container on the Dashboard page
  and makes the chart wrapper fill it.
*/
[b-kt37q8wo0q] .dashboard-card.wide .chart-container {
    display: flex;
    flex-direction: column;
    height: 800px; /* Desktop height */
}

[b-kt37q8wo0q] .chart-wrapper {
    flex-grow: 1;
    height: 100%;
}

/* Set mobile height */
@media (max-width: 767px) {
    [b-kt37q8wo0q] .dashboard-card.wide .chart-container {
        height: 550px; /* Mobile height */
    }
}

/* Interactive Row Styling */
.interactive-row[b-kt37q8wo0q] {
    cursor: pointer;
    transition: background-color 0.15s;
}
.interactive-row:hover[b-kt37q8wo0q] {
    background-color: var(--color-border);
}

/* Tooltip Container */
.widget-tooltip[b-kt37q8wo0q] {
    position: fixed;
    z-index: 9999;
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid var(--color-accent);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    pointer-events: none; /* Allows clicks to pass through if needed */
    min-width: 300px;
}

/* Hide on mobile to prevent obstruction */
@media (max-width: 1024px) {
    .widget-tooltip[b-kt37q8wo0q] {
        display: none !important;
    }
}
/* /Components/Pages/Live/NowPlaying.razor.rz.scp.css */
/* Interactive Row Styling */
.interactive-row[b-4y4jgi9jpq] {
    cursor: pointer;
    transition: background-color 0.15s;
}
.interactive-row:hover[b-4y4jgi9jpq] {
    background-color: var(--color-border);
}

/* Tooltip Container - Same as Home.razor.css */
.widget-tooltip[b-4y4jgi9jpq] {
    position: fixed;
    z-index: 9999;
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid var(--color-accent);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    pointer-events: none; /* Allows clicks to pass through */
    min-width: 300px;
}

/* Hide on mobile to prevent obstruction */
@media (max-width: 1024px) {
    .widget-tooltip[b-4y4jgi9jpq] {
        display: none !important;
    }
}

.flex-row-container[b-4y4jgi9jpq] {
    justify-content: center;
}

.pretty-table[b-4y4jgi9jpq] {
    font-size: medium;
}

.now-playing-item[b-4y4jgi9jpq] {
    max-width: 1000px;
}
/* /Components/Pages/UserSettings.razor.rz.scp.css */
.admin-settings-page[b-9htv0vdv48] {
    max-width: 900px;
    margin: 24px auto;
    padding: 0 16px;
    color: var(--color-text-primary); /* Use theme text color */
}

.settings-header[b-9htv0vdv48] {
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border); /* Use theme border */
}

.settings-header h3[b-9htv0vdv48] {
    margin-bottom: 4px;
}

.settings-header p[b-9htv0vdv48] {
    font-size: 0.9em;
    color: var(--color-text-secondary); /* Use theme secondary text */
}

.setting-item[b-9htv0vdv48] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.setting-item label[b-9htv0vdv48] {
    font-weight: 600;
    color: var(--color-text-secondary);
}

.loading-indicator[b-9htv0vdv48] {
    padding: 40px;
    display: flex;
    justify-content: center;
}

.settings-card[b-9htv0vdv48] {
    background-color: var(--color-card-bg); /* Use theme card background */
    border: 1px solid var(--color-border); /* Use theme border */
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 600px; /* Add max-width for user settings page */
    margin: 0 auto; /* Center the card */
}

.card-title[b-9htv0vdv48] {
    margin-top: 0;
    margin-bottom: 24px;
    color: var(--color-accent); /* Use theme accent color */
}

.setting-field[b-9htv0vdv48] {
    margin-bottom: 24px;
}

.setting-field label[b-9htv0vdv48] {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-text-primary);
}

.setting-field .field-description[b-9htv0vdv48] {
    font-size: 0.85em;
    color: var(--color-text-secondary); /* Use theme secondary text */
    margin-top: -4px;
    margin-bottom: 8px;
}

/* Fix for Radzen's w-100 class */
.w-100[b-9htv0vdv48] {
    width: 100%;
}

.image-preview-wrapper[b-9htv0vdv48] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.image-preview[b-9htv0vdv48] {
    max-width: 150px;
    max-height: 80px;
    border: 1px solid var(--color-border); /* Use theme border */
    border-radius: 4px;
    object-fit: contain;
    background-color: var(--color-background); /* Use theme background */
}

.image-input[b-9htv0vdv48] {
    flex-grow: 1;
}

.file-name-display[b-9htv0vdv48] {
    font-size: 0.9em;
    color: var(--color-text-secondary); /* Use theme secondary text */
    font-style: italic;
}

.action-buttons[b-9htv0vdv48] {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border); /* Use theme border */
}

/* Specific to AdminUsers */
.rz-label-inline[b-9htv0vdv48] {
    margin-left: 8px;
    font-weight: normal !important;
    color: var(--color-text-primary); /* Use theme text */
}

.add-by-station[b-9htv0vdv48] {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.add-by-station .rz-dropdown[b-9htv0vdv48] {
    flex-grow: 1;
}
/* /Components/Prompts/GroupNamePrompt.razor.rz.scp.css */
.group-prompt-container[b-67f85qzzrj] {
    padding: 20px;
}

.prompt-title[b-67f85qzzrj] {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.2em;
    color: #333;
}

.prompt-text[b-67f85qzzrj] {
    margin-top: 0;
    margin-bottom: 16px;
    color: #666;
}

.prompt-input[b-67f85qzzrj] {
    width: 100% !important;
    margin-bottom: 8px !important;
}

.prompt-buttons[b-67f85qzzrj] {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.validation-error[b-67f85qzzrj] {
    display: block;
    color: #dc3545; /* Red */
    font-size: 0.9em;
    margin-top: -12px;
    margin-bottom: 12px;
}
/* /Components/Widgets/ComparisonDatePicker.razor.rz.scp.css */
/* Base wrapper and display */
.comp-datepicker-wrapper[b-ldrcxyicdw] {
    position: relative;
    width: auto;
}


.comp-datepicker-display:hover[b-ldrcxyicdw] {
    border-color: var(--color-accent); /* <-- CHANGED */
}

.comp-datepicker-display i.fa-chevron-down[b-ldrcxyicdw] {
    margin-left: auto;
}

/* Calendar structure */
.calendar[b-ldrcxyicdw] {
    width: 260px;
}

.calendar-header[b-ldrcxyicdw] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 600;
}

.nav-btn[b-ldrcxyicdw] {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--color-text-primary); /* <-- ADDED */
}

.nav-btn:hover:not(:disabled)[b-ldrcxyicdw] {
    background-color: var(--color-background); /* <-- CHANGED */
}

.nav-btn:disabled[b-ldrcxyicdw] {
    color: var(--color-border); /* <-- CHANGED */
    cursor: not-allowed;
}

.calendar-grid[b-ldrcxyicdw] {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}

.day-name[b-ldrcxyicdw] {
    font-weight: 600;
    font-size: 0.8em;
    color: var(--color-text-secondary); /* <-- CHANGED */
}

.day-cell[b-ldrcxyicdw] {
    padding: 6px 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    position: relative;
    color: var(--color-text-primary); /* <-- CHANGED */
}

.day-cell:not(.empty):not(.disabled):not(.selected-range):not(.selected):hover[b-ldrcxyicdw] {
    background-color: var(--color-background); /* <-- CHANGED */
}

.day-cell.empty[b-ldrcxyicdw] {
    cursor: default;
}

.day-cell.today[b-ldrcxyicdw] {
    font-weight: bold;
    border: 1px solid var(--color-accent); /* <-- CHANGED */
}

.day-cell.selected[b-ldrcxyicdw] {
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: inset 0 0 0 2px rgba(0,0,0,0.3);
    padding: 4px 0;
    font-weight: bold;
}

.day-cell.selected-range[b-ldrcxyicdw] {
    border-radius: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.day-cell.selected-range + .day-cell.selected-range[b-ldrcxyicdw] {
    border-left: none;
}

.day-cell.selected-range.start-hover[b-ldrcxyicdw] {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    border-left: 1px solid rgba(255, 255, 255, 0.4);
}
.day-cell.selected-range.end-hover[b-ldrcxyicdw] {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    border-right: 1px solid rgba(255, 255, 255, 0.4);
}


.day-cell.selected-start-of-week[b-ldrcxyicdw] {
    border-radius: 4px;
    border: 2px solid white;
    box-shadow: inset 0 0 0 2px rgba(0,0,0,0.3);
    padding: 4px 0;
    font-weight: bold;
}

.day-cell.selected-start-of-week.start-hover[b-ldrcxyicdw] {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.day-cell.selected-range:not(.disabled):hover[b-ldrcxyicdw] {
    filter: brightness(90%);
}

/* --- Disabled Styles --- */
.day-cell.disabled[b-ldrcxyicdw] {
    color: var(--color-border) !important; /* <-- CHANGED */
    background-color: #2b3648; /* Darker than bg */
    cursor: not-allowed;
    text-decoration: line-through;
    border: none !important;
    box-shadow: none !important;
}

.day-cell.explicitly-disabled[b-ldrcxyicdw] {
    color: #7f8b9e !important; /* Lighter disabled text */
    background-color: var(--color-background); /* <-- CHANGED */
    cursor: not-allowed;
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
    opacity: 0.6; /* <-- ADDED */
}

.day-cell.disabled:hover[b-ldrcxyicdw],
.day-cell.explicitly-disabled:hover[b-ldrcxyicdw] {
    background-color: inherit;
    filter: none !important;
}

/* --- Week Hover Styling --- */
.day-cell.in-range-hover[b-ldrcxyicdw] {
    background-color: #3b83f63d !important; /* Light blue hover */
    color: var(--color-text-primary) !important; /* <-- CHANGED */
    border-radius: 0;
}

.day-cell.start-hover[b-ldrcxyicdw] {
    border-top-left-radius: 4px !important;
    border-bottom-left-radius: 4px !important;
}

.day-cell.end-hover[b-ldrcxyicdw] {
    border-top-right-radius: 4px !important;
    border-bottom-right-radius: 4px !important;
}


/* Footer */
.dropdown-footer[b-ldrcxyicdw] {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-md);
    margin-top: var(--space-md); /* <-- This creates the gap above the line */
}

.footer-btn[b-ldrcxyicdw] {
    border: 1px solid var(--color-border); /* <-- CHANGED */
    background-color: var(--color-card-bg); /* <-- CHANGED */
    color: var(--color-text-primary); /* <-- ADDED */
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.footer-btn.apply[b-ldrcxyicdw] {
    background-color: var(--color-accent); /* <-- CHANGED */
    color: white;
    border-color: var(--color-accent); /* <-- CHANGED */
}

.footer-btn:hover[b-ldrcxyicdw] {
    opacity: 0.9;
}

.dropdown-error[b-ldrcxyicdw] {
    padding: 8px 12px;
    background-color: #572020; /* Dark red */
    border: 1px solid #dc3545; /* Red border */
    color: #f8d7da; /* Light red text */
    border-radius: 4px;
    font-size: 0.9em;
    text-align: center;
}

.comp-datepicker-display:hover[b-ldrcxyicdw] {
    border-color: var(--color-accent);
}

/* --- Mobile Responsive Dropdown Override --- */
@media (max-width: 768px) {
    .comp-datepicker-dropdown[b-ldrcxyicdw] {
        /* Use fixed positioning to break out of the parent container */
        position: fixed;

        /* Position it vertically below the header/settings bar */
        top: 40px;

        /* Stick to the left side of the screen with a small margin */
        left: 10px;

        /* Adjust width to fit the screen with margins */
        width: calc(100vw - 20px);

        /* Constrain width to fit the calendar */
        max-width: 370px;

        /* Ensure it doesn't grow too tall and enables scrolling */
        max-height: 80vh;
        overflow-y: auto;

        /* Add a stronger shadow/border */
        box-shadow: 0 4px 20px rgba(0,0,0,0.5);
        border: 1px solid var(--color-accent);

        /* Ensure it stays on top */
        z-index: 2000;
    }
}
/* /Components/Widgets/DateTimePickerRange.razor.rz.scp.css */
.dt-range-picker-wrapper[b-9pf36iouuc] {
    position: relative;
    width: auto; /* Adjust width as needed */
}


.selection-preview-box[b-9pf36iouuc] {
    margin: 12px 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border: 1px solid var(--color-border);
}

.preview-title[b-9pf36iouuc] {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    font-weight: bold;
}

.selection-preview-box.invalid-range[b-9pf36iouuc] {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.range-warning-alert[b-9pf36iouuc] {
    margin-top: 8px;
    font-size: 0.8rem;
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    border-left: 3px solid #ef4444;
}

.preview-dates[b-9pf36iouuc] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.auto-adjust-alert[b-9pf36iouuc] {
    margin-top: 8px;
    font-size: 0.8rem;
    color: #f59e0b; /* Amber */
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}


.dt-range-display:hover[b-9pf36iouuc] {
    border-color: var(--color-accent); /* <-- CHANGED */
}

.dt-range-display i.fa-chevron-down[b-9pf36iouuc] {
    margin-left: auto;
}


.calendars-container[b-9pf36iouuc] {
    display: flex;
    gap: 16px;
}

.calendar[b-9pf36iouuc] {
    width: 260px;
}

.calendar-header[b-9pf36iouuc] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 600;
}

.nav-btn[b-9pf36iouuc] {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--color-text-primary); /* <-- ADDED */
}

.nav-btn:hover:not(:disabled)[b-9pf36iouuc] {
    background-color: var(--color-background); /* <-- CHANGED */
}

.nav-btn:disabled[b-9pf36iouuc] {
    color: var(--color-border); /* <-- CHANGED */
    cursor: not-allowed;
}

.calendar-grid[b-9pf36iouuc] {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}

.day-name[b-9pf36iouuc] {
    font-weight: 600;
    font-size: 0.8em;
    color: var(--color-text-secondary); /* <-- CHANGED */
}


.day-cell:not(.empty):hover[b-9pf36iouuc] {
    background-color: var(--color-background); /* <-- CHANGED */
}
.day-cell.other-month[b-9pf36iouuc] {
    color: var(--color-border); /* <-- CHANGED */
}
.day-cell.today[b-9pf36iouuc] {
    font-weight: bold;
    border: 1px solid var(--color-accent); /* <-- CHANGED */
}

.day-cell.in-range[b-9pf36iouuc] {
    background-color: #3b83f63d; /* <-- Blue accent, but transparent */
    border-radius: 0;
}

.day-cell.selected[b-9pf36iouuc] {
    background-color: var(--color-accent); /* <-- CHANGED */
    color: white;
}

.day-cell.selected.start[b-9pf36iouuc] {
    border-top-left-radius: 50%;
    border-bottom-left-radius: 50%;
}
.day-cell.selected.end[b-9pf36iouuc] {
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
}
/* When start and end are the same day */
.day-cell.selected.start.end[b-9pf36iouuc] {
    border-radius: 50%;
}

.time-selectors[b-9pf36iouuc] { /* <-- ADDED for consistency */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: medium;
}

.time-input-group[b-9pf36iouuc] {
    flex: 1;
}
.time-input-group label[b-9pf36iouuc] {
    font-size: 0.8em;
    font-weight: 600;
    color: var(--color-text-secondary); /* <-- CHANGED */
    margin-bottom: 4px;
    display: block;
    text-align: center;
}

.dropdown-footer[b-9pf36iouuc] {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-md);
    margin-top: var(--space-md); /* <-- This creates the gap above the line */
}

.footer-btn[b-9pf36iouuc] {
    border: 1px solid var(--color-border); /* <-- CHANGED */
    background-color: var(--color-card-bg); /* <-- CHANGED */
    color: var(--color-text-primary); /* <-- ADDED */
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}
.footer-btn.apply[b-9pf36iouuc] {
    background-color: var(--color-accent); /* <-- CHANGED */
    color: white;
    border-color: var(--color-accent); /* <-- CHANGED */
}
.footer-btn:hover[b-9pf36iouuc] {
    opacity: 0.9;
}

/* Add this rule for disabled dates */
.day-cell.disabled[b-9pf36iouuc] {
    color: var(--color-border); /* <-- CHANGED */
    background-color: #2b3648; /* Darker than bg */
    cursor: not-allowed;
    text-decoration: line-through;
}

.day-cell.disabled:hover[b-9pf36iouuc] {
    background-color: #2b3648; /* Darker than bg */
}

/* Add this rule for the error message */
.dropdown-error[b-9pf36iouuc] {
    padding: 8px 12px;
    background-color: #572020; /* Dark red */
    border: 1px solid #dc3545; /* Red border */
    color: #f8d7da; /* Light red text */
    border-radius: 4px;
    font-size: 0.9em;
    text-align: center;
}

/* NEW STYLES FOR TEXT BOXES */
.time-input-boxes[b-9pf36iouuc] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.time-input-boxes input[b-9pf36iouuc] {
    width: 50px;
    padding: 6px;
    border: 1px solid var(--color-border); /* <-- CHANGED */
    background-color: var(--color-background); /* <-- CHANGED */
    color: var(--color-text-primary); /* <-- ADDED */
    border-radius: 4px;
    box-sizing: border-box;
    text-align: center;
    font-size: 1em;
}

/* Hide the up/down arrows on number inputs */
.time-input-boxes input[b-9pf36iouuc]::-webkit-outer-spin-button,
.time-input-boxes input[b-9pf36iouuc]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.time-input-boxes input[type=number][b-9pf36iouuc] {
    -moz-appearance: textfield;
}

.time-input-colon[b-9pf36iouuc] {
    font-weight: bold;
    font-size: 1.2em;
    padding-bottom: 2px; /* Align with inputs */
}

/* Add this to the end of your CSS file */
.preset-selector[b-9pf36iouuc] {
    border-bottom: 1px solid var(--color-border); /* <-- CHANGED */
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.preset-selector select[b-9pf36iouuc] {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--color-border); /* <-- CHANGED */
    border-radius: 4px;
    background-color: var(--color-background); /* <-- CHANGED */
    color: var(--color-text-primary); /* <-- ADDED */
    font-size: 0.9em;
}

/* --- NEW: Week Hover/Selection Styling --- */
.day-cell.in-range-hover[b-9pf36iouuc] {
    background-color: #3b83f63d !important; /* Light blue hover */
    border-radius: 0;
}

.day-cell.start-hover[b-9pf36iouuc] {
    border-top-left-radius: 50% !important;
    border-bottom-left-radius: 50% !important;
}

.day-cell.end-hover[b-9pf36iouuc] {
    border-top-right-radius: 50% !important;
    border-bottom-right-radius: 50% !important;
}

.dt-range-display:hover[b-9pf36iouuc] {
    border-color: var(--color-accent);
}

.dt-range-display strong[b-9pf36iouuc] {
    color: var(--color-accent); /* Use the theme's accent color */
    font-weight: 600; /* Make it stand out a bit */
}

/* --- Mobile Responsive Dropdown Override --- */
@media (max-width: 768px) {
    .dt-range-dropdown[b-9pf36iouuc] {
        /* Use fixed positioning to break out of the parent container */
        position: fixed;

        /* Position it vertically below the header/settings bar */
        top: 40px;

        /* Stick to the left side of the screen with a small margin */
        left: 10px;

        /* Adjust width to fit the screen with margins */
        width: calc(100vw - 20px);

        /* Constrain width to fit the calendar (260px) plus padding */
        max-width: 310px;

        /* Ensure it fits vertically (needs space for 2 stacked calendars) */
        max-height: 85vh;
        overflow-y: auto;

        /* Add a stronger shadow/border */
        box-shadow: 0 4px 20px rgba(0,0,0,0.5);
        border: 1px solid var(--color-accent);

        /* Ensure it stays on top */
        z-index: 2000;
    }

    /* Stack the two calendars vertically */
    .calendars-container[b-9pf36iouuc] {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}
/* /Components/Widgets/GroupSelector.razor.rz.scp.css */
/* --- Dropdown Overlay & Positioning --- */
.station-selector-wrapper[b-82kqrx6vih] {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}



.selected-stations-display:hover[b-82kqrx6vih] {
    border-color: var(--color-accent); /* <-- ADDED */
}

/* This is the container that gives the dropdown its correct width */
.dropdown-container[b-82kqrx6vih] {
    position: relative;
    flex-grow: 1;
}


.station-list[b-82kqrx6vih] {
    max-height: 300px;
    overflow-y: auto;
}

.group-count[b-82kqrx6vih] {
    color: var(--color-text-secondary); /* <-- CHANGED */
    font-size: 0.9em;
    margin-left: 8px;
}


.dropdown-item:hover[b-82kqrx6vih] {
    background-color: var(--color-accent); /* <-- CHANGED */
}

/* --- 'Create New' Button Styling --- */
.station-list .dropdown-item.create-new[b-82kqrx6vih] {
    color: var(--color-accent); /* <-- CHANGED */
    font-weight: bold;
    border-top: 1px solid var(--color-border); /* <-- CHANGED */
    margin-top: 4px;
    justify-content: flex-start;
}

.station-list .dropdown-item.create-new:hover[b-82kqrx6vih] {
    color: var(--color-text-primary); /* <-- ADDED */
}

.station-list .dropdown-item.create-new i[b-82kqrx6vih] {
    margin-right: 8px;
}

.selected-stations-display .fa-chevron-down[b-82kqrx6vih] {
    margin-left: 8px;
}

.selected-stations-display span[b-82kqrx6vih] {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

/* --- External Delete Button --- */
.btn-delete-current[b-82kqrx6vih] {
    flex-shrink: 0;
    background: none;
    border: 1px solid var(--color-border); /* <-- CHANGED */
    color: #dc3545; /* Keep red */
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 4px;
    line-height: 1;
}

.btn-delete-current:hover:not(:disabled)[b-82kqrx6vih] {
    background-color: #572020; /* Dark red */
    border-color: #dc3545;
    color: #f8d7da; /* Light red text */
}

.btn-delete-current:disabled[b-82kqrx6vih] {
    color: var(--color-border); /* <-- CHANGED */
    border-color: var(--color-background); /* <-- CHANGED */
    cursor: not-allowed;
}

/* ... existing styles ... */

/* --- Mobile Responsive Dropdown Override --- */
@media (max-width: 768px) {
    .station-dropdown[b-82kqrx6vih] {
        /* Use fixed positioning to break out of the parent container */
        position: fixed;

        /* Position it vertically below the header/settings bar */
        top: 40px;

        /* Stick to the left side of the screen with a small margin */
        left: 10px;

        /* Adjust width to fit the screen with margins */
        width: calc(100vw - 20px);

        /* "A little smaller" - constrain the maximum width */
        max-width: 300px;

        /* Ensure it doesn't grow too tall and enables scrolling */
        max-height: 60vh;
        overflow-y: auto;

        /* Add a stronger shadow/border to separate it from the background */
        box-shadow: 0 4px 20px rgba(0,0,0,0.5);
        border: 1px solid var(--color-accent);

        /* Ensure it stays on top of other elements */
        z-index: 2000;
    }
}
/* /Components/Widgets/StationApexChart.razor.rz.scp.css */
.chart-floating-tooltip[b-oncbiyrwkv] {
    position: fixed; /* Float relative to the viewport/window */
    z-index: 9999;   /* Ensure it sits on top of everything */
    background: rgba(30, 30, 30, 0.85);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); /* Strong shadow for depth */
    backdrop-filter: blur(4px);
    pointer-events: none; /* Allow clicking through it if necessary */
    display: none; /* Hidden by default */
    min-width: 220px;
    transition: top 0.1s ease, left 0.1s ease; /* Smooth movement */
}

/* HIDE ON MOBILE: Breakpoint 1024px (tablets/phones) */
@media (max-width: 1024px) {
    .chart-floating-tooltip[b-oncbiyrwkv] {
        display: none !important;
    }
}

[b-oncbiyrwkv] .apex-annotation-marker {
    stroke-width: 2px;
    r: 4px; /* Radius of the circle */
}

[b-oncbiyrwkv] .apex-annotation-label {
    font-size: 11px;
    padding: 2px 5px;
    border-radius: 4px;
    color: #fff;
    opacity: 0.9;
}

/* Default tooltip styling for transparency */
[b-oncbiyrwkv] .apexcharts-tooltip.apexcharts-theme-dark {
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-color: rgba(255, 255, 255, 0.1);
}

[b-oncbiyrwkv] .apexcharts-tooltip-series-group {
    padding: 0 !important;
    margin: 0 !important;
}
/* /Components/Widgets/StationSelector.razor.rz.scp.css */
/* Make the component a positioning context */
.station-selector-wrapper[b-u4ad1for27] {
    position: relative;
}



.station-list[b-u4ad1for27] {
    max-height: 300px;
    overflow-y: auto;
}



.search-box-wrapper[b-u4ad1for27] {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.search-box[b-u4ad1for27] {
    width: 100%;
    padding: 8px 28px 8px 8px;
    border: 1px solid var(--color-border); /* <-- CHANGED */
    border-radius: 4px;
    box-sizing: border-box;
    background-color: var(--color-background); /* <-- CHANGED */
    color: var(--color-text-primary); /* <-- ADDED */
}

.clear-search-btn[b-u4ad1for27] {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.4em;
    color: var(--color-text-secondary); /* <-- CHANGED */
    padding: 0;
    line-height: 1;
}

.clear-search-btn:hover[b-u4ad1for27] {
    color: var(--color-text-primary); /* <-- CHANGED */
}

.dropdown-item[b-u4ad1for27] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md); /* 8px top/bottom, 16px left/right for comfortable height */
    margin-bottom: 2px; /* Adds a tiny gap so hover highlights don't bleed into each other */
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    color: var(--color-text-primary);
    transition: background-color 0.1s ease-in-out;
}



.dropdown-item span:first-child[b-u4ad1for27] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 12px; /* Safe space before the toggle switch */
    flex-grow: 1;
}

.dropdown-item:hover[b-u4ad1for27] {
    background-color: var(--color-accent); /* <-- CHANGED */
    color: var(--color-text-primary); /* <-- ADDED */
}

.dropdown-item.select-all[b-u4ad1for27] {
    border-bottom: 1px solid var(--color-border);
    font-weight: bold;
    margin-bottom: 4px; /* Slightly larger gap below the 'Select All' separator */
}

/* --- On/Off Switch Styles --- */
.switch[b-u4ad1for27] {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}

.station-list .dropdown-item .switch[b-u4ad1for27] {
    pointer-events: none;
}

.switch input[b-u4ad1for27] {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider[b-u4ad1for27] {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-border); /* <-- CHANGED */
    transition: .4s;
}

.slider[b-u4ad1for27]:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 3px;
    bottom: 3px;
    background-color: white; /* The knob is ALWAYS white */
    transition: .4s;
}

.dropdown-item:hover input:checked + .slider[b-u4ad1for27] {
    background-color: #60a5fa; /* A lighter blue */
    border-color: #60a5fa;
}

input:checked + .slider[b-u4ad1for27] {
    background-color: var(--color-accent); /* <-- CHANGED */
}

input:checked + .slider[b-u4ad1for27]:before {
    transform: translateX(14px);
}

.slider.round[b-u4ad1for27] {
    border-radius: 20px;
}

.slider.round[b-u4ad1for27]:before {
    border-radius: 50%;
}

.selected-stations-display .fa-chevron-down[b-u4ad1for27] {
    margin-left: 8px;
}

.dropdown-item.show-selected[b-u4ad1for27] {
    border-bottom: 1px solid var(--color-border); /* <-- CHANGED */
}

.selected-stations-display:hover[b-u4ad1for27] {
    border-color: var(--color-accent);
}

/* --- Mobile Responsive Dropdown Override --- */
@media (max-width: 768px) {
    .station-dropdown[b-u4ad1for27] {
        /* Use fixed positioning to break out of the parent container */
        position: fixed;

        /* Position it vertically below the header/settings bar */
        top: 40px;

        /* Stick to the left side of the screen with a small margin */
        left: 10px;

        /* Adjust width to fit the screen with margins */
        width: calc(100vw - 20px);

        /* "A little smaller" - constrain the maximum width */
        max-width: 370px;

        /* Ensure it doesn't grow too tall and enables scrolling */
        max-height: 60vh;
        overflow-y: auto;

        /* Add a stronger shadow/border to separate it from the background */
        box-shadow: 0 4px 20px rgba(0,0,0,0.5);
        border: 1px solid var(--color-accent);

        /* Ensure it stays on top of other elements */
        z-index: 2000;
    }
}
/* /Components/Widgets/TimeSlotPicker.razor.rz.scp.css */
.timeslot-content[b-78jjmg4z40] {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.setting-item-popup[b-78jjmg4z40] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-item-popup label[b-78jjmg4z40] {
    font-weight: 600;
    color: var(--color-text-primary); /* <-- CHANGED */
}

.day-picker-grid[b-78jjmg4z40] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.day-item[b-78jjmg4z40] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.day-item label[b-78jjmg4z40] {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    user-select: none;
    color: var(--color-text-secondary); /* <-- CHANGED */
}

.hour-picker-row[b-78jjmg4z40] {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.hour-picker-row select[b-78jjmg4z40] {
    position: relative;
    border-radius: 12px;
    min-height: 30px;
    text-align: center;
    box-shadow: 1px 1px 2px 0 rgb(0 0 0 / 30%);
    border: 1px solid var(--color-border); /* <-- CHANGED */
    padding: 4px 8px;
    flex-grow: 1;
    background-color: var(--color-background); /* <-- ADDED */
    color: var(--color-text-primary); /* <-- ADDED */
}

.dropdown-footer[b-78jjmg4z40] {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-md);
    margin-top: var(--space-md); /* <-- This creates the gap above the line */
}

.footer-btn[b-78jjmg4z40] {
    border: 1px solid var(--color-border); /* <-- CHANGED */
    background-color: var(--color-card-bg); /* <-- CHANGED */
    color: var(--color-text-primary); /* <-- ADDED */
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.footer-btn.apply[b-78jjmg4z40] {
    background-color: var(--color-accent); /* <-- CHANGED */
    color: white;
    border-color: var(--color-accent); /* <-- CHANGED */
}

.footer-btn:hover[b-78jjmg4z40] {
    opacity: 0.9;
}
/* /Components/Widgets/UserSettingsBar.razor.rz.scp.css */
/* --- Wrapper: holds the tab and the bar --- */
.settings-bar-wrapper[b-o3lq5fwi3d] {
    position: relative;
    /* User's margin to pull it up */
    margin: -6px 4px 2px 4px;
    z-index: 10;
    /* Add flex display */
    display: flex;
    flex-direction: column;
}

/* --- This is the visible "pull-tab" --- */
.filter-toggle-wrapper[b-o3lq5fwi3d] {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    /* User's shadow */
    box-shadow: inset 0 9px 14px 0 black;
    margin: 0 auto;
    width: 120px;
    height: 20px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
    border-top: none;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    position: relative;
    transition: background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    margin-top 0.3s ease-in-out, /* This animates the margin */
    order 0s linear 0.3s; /* This delays the order-swap */
    z-index: -1;
    /* Default order (at the top) */
    order: 1;
}

/* --- The button is just a container for the text/icon --- */
.filter-toggle-btn[b-o3lq5fwi3d] {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--color-text-primary);
    font-size: 0.9em;
    cursor: pointer;
    padding: 0 8px;
    line-height: 20px;
}

/* --- Arrow Icon --- */
.filter-toggle-btn i[b-o3lq5fwi3d] {
    color: var(--color-text-primary);
    transition: transform 0.3s ease, color 0.2s ease;
    font-size: 0.9em;
    flex-shrink: 0;
}

/* --- Text inside tab --- */
.filter-toggle-text[b-o3lq5fwi3d] {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--color-text-primary);
    transition: color 0.2s ease;
    user-select: none;
    white-space: nowrap;
}

/* --- Hover State --- */
.filter-toggle-wrapper:hover[b-o3lq5fwi3d] {
    background-color: var(--color-card-bg);
    border-color: var(--color-accent);
}

/* --- Open State (Arrow Flip) --- */
.filter-toggle-btn.open i[b-o3lq5fwi3d] {
    transform: rotate(180deg);
}

/* --- This is the sliding drawer --- */
.settings-bar[b-o3lq5fwi3d] {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px 4px 8px;
    flex-wrap: wrap;
    font-size: 0.8em;
    font-weight: 500;
    justify-content: center;
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text-secondary);

    /* This pulls the bar up "under" the tab's border */
    margin-top: -1px;

    transition: max-height 0.3s ease-in-out,
    padding-top 0.3s ease-in-out,
    padding-bottom 0.3s ease-in-out,
    visibility 0.3s,
    border-radius 0.1s 0.2s,
    order 0s linear 0.3s,
    overflow 0s linear 0.3s;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    visibility: hidden;
    overflow: hidden;

    /* Default order (at the bottom) */
    order: 2;
}

/* --- --- ---
   OPEN STATE CHANGES
   --- --- --- */

/* 1. Wrapper is open: Move bar to the top */
.settings-bar-wrapper.open .settings-bar[b-o3lq5fwi3d] {
    order: 1; /* Bar moves to the top */
    max-height: 500px;
    padding-top: 6px;
    padding-bottom: 2px;
    visibility: visible;

    /* Make bottom corners sharp to connect to tab */
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    transition-delay: 0s, 0s, 0s, 0s, 0s, 0s, 0s; /* Added one more 0s */
    overflow: visible;

    box-shadow: inset 0 4px 6px -1px rgba(0, 0, 0, 0.4);
}

/* 2. Wrapper is open: Move tab to the bottom */
.settings-bar-wrapper.open .filter-toggle-wrapper[b-o3lq5fwi3d] {
    order: 2; /* Tab moves to the bottom */

    /* Flip border and shadow */
    border-top: 1px solid var(--color-border);
    border-bottom: none;
    box-shadow: inset 0 9px 14px 0 black; /* <-- MODIFIED: Flipped shadow */

    /* Flip radius to be at the bottom */
    border-bottom-left-radius: 6px;  /* <-- MODIFIED */
    border-bottom-right-radius: 6px; /* <-- MODIFIED */
    border-top-left-radius: 0;       /* <-- MODIFIED */
    border-top-right-radius: 0;      /* <-- MODIFIED */

    /* Overlap the bar's bottom border and hide half the tab */
    margin-top: -6px;
    transition-delay: 0s;
}



.setting-item[b-o3lq5fwi3d] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-item label[b-o3lq5fwi3d] {
    font-weight: 600;
    color: var(--color-text-secondary);
}

.setting-value[b-o3lq5fwi3d] {
    background-color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* --- Station Selector Styles --- */
.station-selector-wrapper[b-o3lq5fwi3d] {
    position: relative;
    width: 250px;
}





.search-box[b-o3lq5fwi3d] {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    margin-bottom: 8px;
    box-sizing: border-box;
    background-color: var(--color-background);
    color: var(--color-text-primary);
}

.station-list[b-o3lq5fwi3d] {
    max-height: 250px;
    overflow-y: auto;
}


.dropdown-item:hover[b-o3lq5fwi3d] {
    background-color: var(--color-accent);
}

.dropdown-item.select-all[b-o3lq5fwi3d] {
    border-bottom: 1px solid var(--color-border);
    font-weight: bold;
}

.select-btn[b-o3lq5fwi3d] {
    border: none;
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.select-btn:hover[b-o3lq5fwi3d] {
    background: #0056b3;
}


/* --- On/Off Switch Styles --- */
.switch[b-o3lq5fwi3d] {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}

.switch input[b-o3lq5fwi3d] {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider[b-o3lq5fwi3d] {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider[b-o3lq5fwi3d]:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider[b-o3lq5fwi3d] {
    background-color: #2196F3;
}

input:checked + .slider[b-o3lq5fwi3d]:before {
    transform: translateX(14px);
}

.slider.round[b-o3lq5fwi3d] {
    border-radius: 20px;
}

.slider.round[b-o3lq5fwi3d]:before {
    border-radius: 50%;
}

.apply-btn[b-o3lq5fwi3d] {
    padding: 6px 16px;
    background-color: var(--color-accent);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 36px;
}

.apply-btn:hover[b-o3lq5fwi3d] {
    background-color: #0056b3;
}

.apply-btn:disabled[b-o3lq5fwi3d] {
    background-color: var(--color-border);
    cursor: not-allowed;
    opacity: 0.6;
}



.timeslot-display:hover[b-o3lq5fwi3d] {
    border-color: var(--color-accent);
}

.timeslot-display i.fa-chevron-down[b-o3lq5fwi3d] {
    margin-left: auto;
}

.setting-item.top-stations-count[b-o3lq5fwi3d] {
    padding: 6px 8px; /* Match other items */
}

.setting-item.top-stations-count .rz-numeric[b-o3lq5fwi3d] {
    width: 80px;
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
}

.setting-item.top-stations-count .rz-numeric-input[b-o3lq5fwi3d] {
    height: 30px;
    padding: 6px 8px;
    box-sizing: border-box;
    background-color: var(--color-background);
    color: var(--color-text-primary);
    border: none; /* Input border is handled by wrapper */
}

/* ADD THESE NEW RULES for the buttons */
.setting-item.top-stations-count .rz-spinner-button[b-o3lq5fwi3d] {
    background-color: var(--color-border);
    color: var(--color-text-primary);
    box-shadow: none;
}

.setting-item.top-stations-count .rz-spinner-button:hover[b-o3lq5fwi3d] {
    background-color: var(--color-accent);
}

.setting-item.top-stations-count .rz-numeric:hover[b-o3lq5fwi3d] {
    border-color: var(--color-accent) !important;
}

.additional-controls-wrapper[b-o3lq5fwi3d] {
    display: flex;
    align-items: center;
    gap: 6px; /* Matches the gap of .settings-bar */
    flex-wrap: wrap;
}

.actions-wrapper[b-o3lq5fwi3d] {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto; /* This pushes the whole block to the right */
}

[b-o3lq5fwi3d] .user-bar-radzen-btn.rz-button {
    border-radius: 4px; /* Match rounded edges */
    padding: 0;
}

[b-o3lq5fwi3d] .user-bar-radzen-btn.rz-button .rz-button-box {
    padding: 4px 12px; /* Match padding from apply-btn */
    font-size: 0.9em;  /* Match smaller text from apply-btn */
    font-weight: 600;  /* Match font weight from apply-btn */
}
