/* ===== Sidebar (desktop) ===== */
.sidebar {
    width: 260px;
    flex-shrink: 0;
    padding: 22px 18px;
    margin: 16px;
    position: sticky;
    top: 16px;
    height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    background: var(--glass-bg);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: 0 8px 40px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 6px;
    padding: 6px 8px;
}

.brand .mark {
    width: 150px;
    height: auto;
    border-radius: 13px;
    display: grid;
    place-items: center;
    overflow: hidden;
    font-size: 19px;
}

.brand .mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand small {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
}

.role-switch {
    display: flex;
    gap: 6px;
    background: rgba(0, 0, 0, .25);
    padding: 5px;
    border-radius: 14px;
    margin: 14px 0 18px;
}

.role-switch button {
    flex: 1;
    padding: 9px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: .25s;
}

.role-switch button.on {
    background: var(--glass-strong);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.menu::-webkit-scrollbar {
    width: 0;
}

.nav-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--muted);
    padding: 14px 12px 6px;
}

.menu a {
    text-decoration: none;
    color: var(--txt);
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14.5px;
    font-weight: 500;
    transition: .22s;
    cursor: pointer;
}

.menu a i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    opacity: .85;
}

.menu a:hover {
    background: rgba(255, 255, 255, .07);
}

.menu a.active {
    background: var(--glass-strong) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
}

.menu a.active i {
    color: var(--accent) !important;
    opacity: 1;
}

.sub {
    margin-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, .1);
    padding-left: 6px;
}

.sub a {
    font-size: 13.5px;
    padding: 9px 12px;
}

.side-foot {
    margin-top: auto;
    padding-top: 14px;
}

.user-name-profile {
    font-size: 12px;
    font-weight: bold;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--glass-strong);
    border: 1px solid var(--glass-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s;
}

.user-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
    background: rgba(255, 255, 255, .65);
}

.user-chip:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
}

.user-chip::after {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
    color: var(--muted);
    margin-left: auto;
    transition: transform .2s, color .2s;
}

.user-chip:hover::after {
    transform: translateX(3px);
    color: var(--accent);
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9f0a, #ff453a);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 14px;
}

.sidebar .sidebar-profile-avatar {
    box-sizing: border-box;
    border: 2px solid var(--accent);
    padding: 2px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    background: transparent;
}

.user-chip .sidebar-profile-avatar {
    width: 32px;
    height: 32px;
}

.user-chip-details {
    flex: 1;
    min-width: 0;
}

.user-chip-details > b,
.user-chip-details > small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.user-chip small {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.user-chip .sidebar-role-badge {
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
    padding: 2px 8px;
    border: 1px solid var(--accent);
    border-radius: 999px;
    background: var(--glass-bg);
    color: var(--accent);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.5;
    vertical-align: top;
}

/* ===== Content ===== */
.content {
    flex: 1;
    padding: 24px 28px 120px;
    min-width: 0;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.topbar h1 {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.5px;
}

.topbar p {
    color: var(--muted);
    font-size: 14px;
    margin-top: 3px;
}

.top-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    color: var(--txt);
    font-size: 16px;
    position: relative;
    transition: .2s;
}

.icon-btn:hover {
    background: var(--glass-strong);
}

.dot {
    position: absolute;
    top: 9px;
    right: 10px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--danger);
    border: 2px solid #05070d;
}

/* ===== Pages ===== */
.page {
    display: none;
    animation: fade .4s ease;
}

.page.show {
    display: block;
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Stats ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

/* KPI Grid: 1 row 4 columns on desktop, 2x2 on mobile */
.kpi-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.stat {
    padding: 22px;
    position: relative;
    overflow: hidden;
}

.kpi-stat {
    padding: 16px 18px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.kpi-stat .kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.kpi-stat .ico {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 15px;
    margin-bottom: 0;
}

.kpi-stat small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.kpi-stat h2 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 4px;
    letter-spacing: -.3px;
    line-height: 1.2;
}

.kpi-stat h2 span {
    font-size: 13px !important;
}

.kpi-stat .trend {
    font-size: 11.5px;
    margin-top: 6px;
    font-weight: 500;
}

.stat .ico {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 19px;
    margin-bottom: 16px;
}

.stat small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.stat h2 {
    font-size: 30px;
    font-weight: 700;
    margin-top: 4px;
    letter-spacing: -.5px;
}

.stat .trend {
    font-size: 12px;
    margin-top: 8px;
    color: var(--accent2);
}

.trend.down {
    color: var(--danger);
}

.bg-blue {
    background: rgba(10, 132, 255, .18);
    color: #5eb0ff;
}

.bg-green {
    background: rgba(48, 209, 88, .18);
    color: #5ee08a;
}

.bg-orange {
    background: rgba(255, 159, 10, .18);
    color: #ffc35e;
}

.bg-purple {
    background: rgba(191, 90, 242, .18);
    color: #d09bf7;
}

/* ===== Dashboard Grid ===== */
.dash-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 22px;
}

.dash-left,
.dash-right {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Chart legend */
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 12px;
    color: var(--muted);
}

.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

/* Monthly bar chart */
.monthly-chart {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    height: 180px;
}

.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    font-size: 11px;
    color: var(--muted);
    padding-bottom: 20px;
}

.chart-bars {
    display: flex;
    flex: 1;
    gap: 6px;
    align-items: flex-end;
    height: 100%;
}

.bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    height: 100%;
}

.bar-group span {
    font-size: 10px;
    color: var(--muted);
}

.bar-pair {
    display: flex;
    gap: 3px;
    align-items: flex-end;
    flex: 1;
    width: 100%;
}

.bar-a {
    flex: 1;
    background: var(--accent);
    border-radius: 4px 4px 0 0;
    min-height: 4px;
}

.bar-b {
    flex: 1;
    background: var(--theme-aqua-light, #68c2dc);
    border-radius: 4px 4px 0 0;
    min-height: 4px;
}

/* Trend badge */
.trend-badge {
    font-size: 12px;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

/* Temperature display */
.temp-display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.temp-value {
    font-size: 22px;
    font-weight: 700;
}

/* Gauge meter (half-circle) */
.gauge-meter {
    text-align: center;
}

.gauge-meter svg {
    max-width: 180px;
}

.gauge-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--muted);
    padding: 0 10px;
    margin-top: -8px;
}

/* CO display */
.co-display {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.co-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(33, 150, 243, .15);
    color: #2196f3;
    display: grid;
    place-items: center;
    font-size: 18px;
}

.co-value {
    font-size: 28px;
    font-weight: 700;
}

/* Growth rate chart */
.growth-chart {
    position: relative;
    display: flex;
    gap: 8px;
    height: 140px;
}

.growth-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 10px;
    color: var(--muted);
    padding-bottom: 20px;
}

.growth-line {
    flex: 1;
    height: 100%;
}

.growth-x-labels {
    position: absolute;
    bottom: 0;
    left: 40px;
    right: 0;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--muted);
}

/* Lake detail panel — single card with thumbs + details */
.lake-detail-panel {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.lake-detail-separator {
    width: 1px;
    background: rgba(0, 0, 0, .08);
    margin: 0 16px;
    flex-shrink: 0;
}

.lake-selector {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: visible;
    padding: 10px 0;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.lake-thumb {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--glass-border);
    overflow: visible;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform .2s, border-color .2s, box-shadow .2s;
    background: rgba(255, 255, 255, .15);
    color: var(--accent);
    font-size: 18px;
    flex-shrink: 0;
    position: relative;
}

.lake-thumb img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 50%;
}

.lake-thumb:hover {
    transform: scale(1.05);
}

.lake-thumb.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(6, 137, 121, .35);
}


.lake-selector::-webkit-scrollbar {
    width: 5px;
}

.lake-selector::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .18);
    border-radius: 999px;
}

.lake-selector::-webkit-scrollbar-track {
    background: transparent;
}

/* Lake detail card */
.lake-detail-card {
    flex: 1;
    min-width: 0;
}

.lake-detail-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 14px;
}

/* Image + info side by side */
.lake-detail-top {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.lake-detail-img {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.lake-detail-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    justify-content: center;
}

@media (max-width: 900px) {
    .lake-detail-panel {
        flex-direction: column;
    }

    .lake-selector {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        max-height: none;
        padding: 0 0 10px;
    }

    .lake-detail-separator {
        width: auto;
        height: 1px;
        margin: 12px 0;
    }

    .lake-detail-top {
        flex-direction: column;
    }

    .lake-detail-img {
        width: 100%;
        height: 140px;
    }
}

.lake-detail-info strong {
    font-size: 12px;
    color: var(--muted);
}

.lake-detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 13px;
}

.lake-detail-row strong {
    font-size: 12px;
    color: var(--muted);
}

.lake-species-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 0;
    scrollbar-width: thin;
}

.lake-species-list::-webkit-scrollbar {
    height: 4px;
}

.lake-species-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .12);
    border-radius: 999px;
}

.pest-badge {
    display: inline-block;
    white-space: nowrap;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(6, 137, 121, .14);
    color: var(--accent);
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
}

/* Pie chart */
.pie-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pie-chart {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}

.pie-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 12px;
}

.pie-legend strong {
    display: block;
    margin-top: 2px;
}

/* ===== Grid helpers ===== */
.grid-2 {
    display: grid;
    grid-template-columns: .85fr 1.25fr;
    gap: 22px;
}

.grid-2b {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.card {
    padding: 24px;
}

.card-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.card-h h3 {
    font-size: 18px;
    font-weight: 600;
}

.card-h a {
    color: var(--accent);
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}

/* ===== Clickable link cards ===== */
.link-card {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.link-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
}

.link-card .ico {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 20px;
    margin-bottom: 16px;
}

.link-card h3 {
    font-size: 18px;
    font-weight: 600;
}

.link-card p {
    color: var(--muted);
    font-size: 13px;
    margin-top: 6px;
}

.link-go {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s;
}

.back-link:hover {
    color: var(--accent);
}

/* ===== Forms ===== */
.field {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}

input,
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    background: var(--glass-bg);
    color: var(--txt);
    outline: none;
    font-size: 15px;
    transition: .2s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    background: rgba(6, 137, 121, .08);
}

select option {
    background: rgba(255, 255, 255, .9);
    color: var(--txt);
}

.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-size: 15.5px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--primary, #0074a3), var(--accent, #068979));
    box-shadow: 0 8px 22px rgba(0, 116, 163, .35);
    transition: .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 116, 163, .45);
}

.btn:active {
    transform: translateY(0);
}

.btn.green {
    background: linear-gradient(135deg, #30d158, #1f9e42);
    box-shadow: 0 8px 22px rgba(48, 209, 88, .4);
}

.btn.red {
    background: linear-gradient(135deg, #ff453a, #cc2e26);
    box-shadow: 0 8px 22px rgba(255, 69, 58, .4);
}

.btn.ghost {
    background: rgba(255, 255, 255, .08);
    box-shadow: none;
    border: 1px solid var(--glass-border);
}

.btn.secondary {
    background: rgba(0, 68, 79, 0.08);
    color: var(--txt, #00444f);
    border: 1px solid rgba(0, 68, 79, 0.16);
    box-shadow: 0 4px 14px rgba(0, 68, 79, 0.06);
}

.btn.secondary:hover {
    background: rgba(0, 68, 79, 0.15);
    border-color: rgba(0, 68, 79, 0.28);
    color: var(--txt, #00444f);
    box-shadow: 0 6px 18px rgba(0, 68, 79, 0.1);
    transform: translateY(-2px);
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease-out;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 24px 16px;
    box-sizing: border-box;
    will-change: opacity;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

body.modal-open {
    overflow: hidden !important;
}

.modal {
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 28px;
    border-radius: var(--radius);
    transform: translateY(12px) scale(.98);
    transition: transform .18s ease-out;
    background: radial-gradient(circle at 18% 12%, #d7f5f6, #eaf6f6 60%), radial-gradient(circle at 88% 85%, #ceeee7, #eaf6f6 65%) !important;
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 1.25rem 3rem rgba(0, 68, 79, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    color: var(--txt, #00444f) !important;
    box-sizing: border-box;
    margin: auto;
    will-change: transform;
    contain: content;
}

/* Custom sleek scrollbar for modals */
.modal::-webkit-scrollbar,
.modal-overlay::-webkit-scrollbar {
    width: 6px;
}

.modal::-webkit-scrollbar-track,
.modal-overlay::-webkit-scrollbar-track {
    background: rgba(0, 68, 79, 0.05);
    border-radius: 8px;
}

.modal::-webkit-scrollbar-thumb,
.modal-overlay::-webkit-scrollbar-thumb {
    background: rgba(0, 68, 79, 0.2);
    border-radius: 8px;
}

.modal::-webkit-scrollbar-thumb:hover,
.modal-overlay::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 68, 79, 0.35);
}

.modal-close i {
    color: var(--txt, #00444f);
}

.modal label {
    color: var(--txt, #00444f);
}

/* Authentic Liquid Glass / Glassmorphism for cards inside modals */
.liquid-glass-card,
.modal .detail-header-card,
.modal .detail-gauges-grid > div,
.modal .sensor-grid .sensor,
.modal .modal-card-box {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 8px 24px rgba(0, 68, 79, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.liquid-glass-card:hover,
.modal .sensor-grid .sensor:hover {
    background: rgba(255, 255, 255, 0.58) !important;
    border-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 12px 28px rgba(0, 68, 79, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: var(--muted);
    cursor: pointer;
    font-size: 16px;
    display: grid;
    place-items: center;
    transition: .2s;
}

.modal-close:hover {
    background: rgba(255, 69, 58, .2);
    color: #ff453a;
}

@media (max-width: 600px) {
    .modal-overlay {
        padding: 14px 10px;
        align-items: flex-start;
        /* ensures top of long forms is visible on mobile */
    }

    .modal {
        padding: 20px 16px;
        max-height: calc(100vh - 28px);
    }

    .modal-header {
        margin-bottom: 16px;
    }
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.pw-wrap {
    position: relative;
}

.pw-wrap input {
    padding-right: 46px;
}

.pw-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 15px;
    padding: 4px;
    transition: color .2s;
}

.pw-eye:hover {
    color: var(--accent);
}

/* ===== Table action buttons ===== */
.tbl-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    display: inline-grid;
    place-items: center;
    transition: .2s;
}

.tbl-btn.edit {
    background: rgba(10, 132, 255, .15);
    color: var(--accent);
}

.tbl-btn.edit:hover {
    background: rgba(10, 132, 255, .3);
}

.tbl-btn.del {
    background: rgba(255, 69, 58, .15);
    color: #ff453a;
    margin-left: 6px;
}

.tbl-btn.del:hover {
    background: rgba(255, 69, 58, .3);
}

/* ===== Chamber gauge ===== */
.gauge {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 6px auto 14px;
}

.gauge svg {
    transform: rotate(-90deg);
}

/* looping 60s timer ring */
.timer-ring {
    animation: timerRun 60s linear infinite;
}

@keyframes timerRun {
    from {
        stroke-dashoffset: 540;
    }

    to {
        stroke-dashoffset: 0;
    }
}

.gauge .center {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
}

.gauge .center .t {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -1px;
}

.gauge .center .l {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

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

.badge {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.badge.run {
    background: rgba(48, 209, 88, .2);
    color: #5ee08a;
}

.badge.idle {
    background: rgba(255, 255, 255, .12);
    color: var(--muted);
}

.badge.warn {
    background: rgba(255, 159, 10, .2);
    color: #ffc35e;
}

.pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 1.4s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .3;
    }
}

.progress {
    height: 14px;
    background: rgba(0, 0, 0, .3);
    border-radius: 50px;
    overflow: hidden;
    margin: 16px 0 8px;
}

.progress div {
    height: 100%;
    width: 0;
    border-radius: 50px;
    background: linear-gradient(90deg, #30d158, #5ee08a);
    transition: width .6s;
}

.sensor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
    margin-top: 18px;
}

.sensor {
    padding: 16px;
    text-align: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--glass-border);
}

.sensor small {
    color: var(--white);
    font-size: 12px;
}

.sensor h3 {
    font-size: 22px;
    margin-top: 6px;
    font-weight: 600;
}

.sensor i {
    font-size: 15px;
    margin-bottom: 4px;
    opacity: .8;
}

/* ===== Mini chart ===== */
.chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 160px;
    padding-top: 10px;
}

.bar {
    flex: 1;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, var(--primary, #0074a3), rgba(0, 116, 163, .25));
    transition: .3s;
    position: relative;
}

.bar:hover {
    background: linear-gradient(180deg, var(--accent2, #56c69e), rgba(86, 198, 158, .35));
}

.chart-labels {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.chart-labels span {
    flex: 1;
    text-align: center;
    font-size: 11px;
    color: var(--muted);
}

/* ===== Table ===== */
table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 13px 12px;
    font-size: 14px;
}

th {
    color: var(--muted);
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 1px solid var(--glass-border);
}

td {
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

tr:last-child td {
    border-bottom: none;
}

.pill {
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.pill.ok {
    background: rgba(48, 209, 88, .18);
    color: #5ee08a;
}

.pill.pend {
    background: rgba(255, 159, 10, .18);
    color: #ffc35e;
}

.pill.err {
    background: rgba(255, 69, 58, .18);
    color: #ff8a82;
}

/* ===== Notifications ===== */
.notif {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--glass-border);
}

.notif .ni {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 17px;
    flex-shrink: 0;
}

.notif .meta {
    flex: 1;
}

.notif .meta b {
    font-size: 14.5px;
}

.notif .meta p {
    color: var(--muted);
    font-size: 13px;
    margin-top: 3px;
}

.notif .time {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

/* ===== Toggle ===== */
.toggle {
    position: relative;
    width: 50px;
    height: 30px;
    flex-shrink: 0;
}

.toggle input {
    display: none;
}

.toggle span {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .15);
    border-radius: 50px;
    cursor: pointer;
    transition: .25s;
}

.toggle span::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    top: 3px;
    left: 3px;
    transition: .25s;
}

.toggle input:checked+span {
    background: var(--accent2);
}

.toggle input:checked+span::after {
    transform: translateX(20px);
}

.setrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.setrow:last-child {
    border-bottom: none;
}

.setrow small {
    color: var(--muted);
    font-size: 13px;
    display: block;
    margin-top: 2px;
}

.sec-title {
    font-size: 15px;
    font-weight: 600;
    margin: 6px 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
}

/* species chips */
.daily-report-page { max-width: 1280px; }.daily-back-link { width: fit-content; margin-bottom: 12px; padding: 8px 12px; border: 1px solid rgba(255, 255, 255, .82); border-radius: 30px; background: rgba(241, 251, 250, .48); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); box-shadow: 0 5px 16px rgba(0, 68, 79, .08), inset 0 1px 0 rgba(255, 255, 255, .75); color: var(--txt); font-size: 12px; }.daily-back-link:hover { color: var(--accent); background: rgba(255, 255, 255, .66); transform: translateY(-1px); }.daily-report-toolbar { padding: 24px 28px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 22px; background: linear-gradient(120deg, rgba(241, 251, 250, .84), rgba(205, 241, 239, .52)); }.daily-report-eyebrow { color: var(--accent); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }.daily-report-eyebrow i { margin-right: 6px; }.daily-report-toolbar h2 { margin: 5px 0 3px; font-size: 24px; letter-spacing: -.5px; }.daily-report-toolbar p { color: var(--muted); font-size: 12px; }.daily-date-form { min-width: 335px; }.daily-date-form label { margin-bottom: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }.daily-date-form label i { color: var(--accent); margin-right: 4px; }.daily-date-actions { display: flex; align-items: center; gap: 8px; }.daily-date-actions input { height: 42px; min-width: 145px; padding: 0 10px; font-size: 12px; }.daily-export-btn { width: auto; height: 42px; padding: 0 13px; font-size: 12px; white-space: nowrap; }.daily-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }.daily-kpi-card { padding: 17px 19px; display: flex; align-items: center; gap: 13px; }.daily-kpi-icon { width: 43px; height: 43px; position: relative; flex-shrink: 0; border-radius: 13px; line-height: 1; }.daily-kpi-icon i { position: absolute; top: 50%; left: 50%; display: block; line-height: 1; transform: translate(-50%, -50%); }.daily-kpi-icon.blue { background: rgba(0, 116, 163, .13); color: var(--primary); }.daily-kpi-icon.green { background: rgba(6, 137, 121, .13); color: var(--accent); }.daily-kpi-card small, .daily-kpi-card span { display: block; color: var(--muted); font-size: 11px; }.daily-kpi-card strong { display: block; margin: 1px 0; font-size: 22px; }.daily-kpi-card strong em { font-size: 12px; font-style: normal; font-weight: 600; color: var(--muted); }.daily-table-card { padding: 0; overflow: hidden; }.daily-table-header { padding: 20px 21px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }.daily-table-header h3 { font-size: 16px; margin: 0 0 2px; }.daily-table-header p { color: var(--muted); font-size: 11.5px; }.daily-table-header > span { color: var(--accent); font-size: 11px; font-weight: 700; padding: 6px 9px; border-radius: 999px; background: rgba(6, 137, 121, .10); }.daily-price-note { margin: 0 21px 14px; padding: 9px 10px; border-radius: 10px; background: rgba(0, 116, 163, .07); color: var(--muted); font-size: 11px; }.daily-price-note i { margin-right: 5px; color: var(--primary); }.daily-table-scroll { overflow-x: auto; }.daily-report-table { width: 100%; min-width: 760px; border-collapse: collapse; }.daily-report-table th { padding: 11px 15px; background: rgba(0, 68, 79, .05); color: var(--muted); font-size: 10.5px; letter-spacing: .04em; text-align: left; text-transform: uppercase; }.daily-report-table td { padding: 13px 15px; border-top: 1px solid rgba(0, 68, 79, .08); color: var(--txt); font-size: 12.5px; }.daily-report-table td small { display: block; margin-top: 2px; color: var(--muted); font-size: 10.5px; }.daily-charcoal { color: var(--accent) !important; font-weight: 700; }.daily-status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; white-space: nowrap; }.daily-status.ready { color: var(--accent); background: rgba(6, 137, 121, .11); }.daily-status.pending { color: #a76700; background: rgba(249, 168, 37, .15); }.daily-status.other { color: var(--primary); background: rgba(0, 116, 163, .10); }.daily-empty { padding: 38px !important; color: var(--muted) !important; text-align: center; }.daily-empty i { display: block; margin-bottom: 8px; color: var(--accent2); font-size: 21px; }
.monthly-date-form { min-width: 550px; }.monthly-range-divider { color: var(--muted); font-size: 12px; font-weight: 700; }.monthly-apply-btn { width: auto; height: 42px; padding: 0 11px; background: rgba(0, 68, 79, .08); border: 1px solid rgba(0, 68, 79, .14); box-shadow: none; color: var(--txt); font-size: 12px; white-space: nowrap; }.monthly-apply-btn:hover { background: rgba(0, 68, 79, .14); box-shadow: none; }
.lake-report-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 3px 1px 12px; margin-bottom: 4px; }.lake-report-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; border: 1px solid rgba(0, 68, 79, .10); border-radius: 999px; background: rgba(255, 255, 255, .34); color: var(--muted); font-size: 11.5px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: .18s; }.lake-report-tabs a:hover { background: rgba(6, 137, 121, .09); color: var(--accent); }.lake-report-tabs a.active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 5px 13px rgba(6, 137, 121, .22); }.lake-name-cell { font-weight: 600; }.lake-name-cell i { margin-right: 4px; color: var(--accent); }.lake-report-table { min-width: 660px; }

.settings-options-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reports-options-intro { max-width: 720px; padding: 28px 30px; margin-bottom: 18px; background: linear-gradient(120deg, rgba(241, 251, 250, .85), rgba(205, 241, 239, .54)); }.reports-options-eyebrow { color: var(--accent); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }.reports-options-eyebrow i { margin-right: 6px; }.reports-options-intro h2 { margin: 6px 0 4px; font-size: 25px; letter-spacing: -.6px; }.reports-options-intro p { color: var(--muted); font-size: 12.5px; line-height: 1.6; }.reports-options-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1120px; }.report-option-card { min-height: 224px; display: flex; flex-direction: column; text-decoration: none; color: var(--txt); transition: transform .2s ease, box-shadow .2s ease; }.report-option-card:hover { transform: translateY(-4px); box-shadow: 0 15px 34px rgba(0, 68, 79, .12), inset 0 1px 0 rgba(255, 255, 255, .7); }.report-option-icon { width: 45px; height: 45px; margin-bottom: 15px; display: grid; place-items: center; border-radius: 14px; font-size: 18px; }.report-option-card.daily .report-option-icon { background: rgba(0, 116, 163, .13); color: var(--primary); }.report-option-card.monthly .report-option-icon { background: rgba(6, 137, 121, .13); color: var(--accent); }.report-option-card.lake .report-option-icon { background: rgba(86, 198, 158, .18); color: var(--accent2); }.report-option-label { color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }.report-option-card h3 { margin: 4px 0 5px; font-size: 18px; }.report-option-card p { color: var(--muted); font-size: 12.5px; line-height: 1.55; }.report-option-card .link-go { margin-top: auto; }
@media (min-width: 921px) { .reports-options-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 920px) { .reports-options-grid { grid-template-columns: 1fr !important; } }

.hardware-page { max-width: 1280px; }
.hardware-back-link { width: fit-content; margin-bottom: 12px; padding: 8px 12px; border: 1px solid rgba(255, 255, 255, .82); border-radius: 30px; background: rgba(241, 251, 250, .48); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); box-shadow: 0 5px 16px rgba(0, 68, 79, .08), inset 0 1px 0 rgba(255, 255, 255, .75); color: var(--txt); font-size: 12px; }.hardware-back-link:hover { color: var(--accent); background: rgba(255, 255, 255, .66); transform: translateY(-1px); }
.hardware-hero { min-height: 132px; padding: 22px 28px; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; overflow: hidden; background: linear-gradient(118deg, rgba(241, 251, 250, .84), rgba(205, 241, 239, .54)); }.hardware-hero::after { content: ''; width: 150px; height: 150px; border-radius: 50%; position: absolute; right: -48px; top: -72px; background: rgba(104, 194, 220, .25); }.hardware-hero-copy, .hardware-hero-status { position: relative; z-index: 1; }.hardware-eyebrow { color: var(--accent); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }.hardware-eyebrow i { margin-right: 6px; }.hardware-hero h2 { margin: 5px 0 3px; font-size: 23px; letter-spacing: -.5px; }.hardware-hero p { max-width: 580px; color: var(--muted); font-size: 12px; line-height: 1.55; }.hardware-hero-status { padding: 8px 11px; border-radius: 999px; background: rgba(211, 47, 47, .09); color: var(--danger); font-size: 11px; font-weight: 700; white-space: nowrap; }.hardware-hero-status i { font-size: 8px; margin-right: 4px; }.hardware-hero-status.online { background: rgba(6, 137, 121, .11); color: var(--accent); }
.hardware-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 30px; }.hardware-stat-card { padding: 16px 18px; display: flex; align-items: center; gap: 12px; }.hardware-stat-icon { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; }.hardware-stat-icon.blue { background: rgba(0, 116, 163, .13); color: var(--primary); }.hardware-stat-icon.green { background: rgba(6, 137, 121, .13); color: var(--accent); }.hardware-stat-icon.aqua { background: rgba(86, 198, 158, .18); color: var(--accent2); }.hardware-stat-card small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 500; }.hardware-stat-card strong { display: block; font-size: 20px; line-height: 1.25; margin-top: 2px; }.hardware-section-heading { margin-bottom: 14px; }.hardware-section-heading h3 { margin: 0 0 3px; font-size: 18px; }.hardware-section-heading p { color: var(--muted); font-size: 12.5px; }
.hardware-command-deck { min-height: 178px; padding: 0; margin-bottom: 18px; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(330px, .82fr); overflow: hidden; background: linear-gradient(125deg, rgba(0, 116, 163, .15), rgba(6, 137, 121, .12) 55%, rgba(241, 251, 250, .72)); }.hardware-deck-copy { padding: 27px 30px; position: relative; }.hardware-deck-copy::after { content: ''; position: absolute; width: 150px; height: 150px; right: -40px; bottom: -88px; border: 1px solid rgba(0, 116, 163, .2); border-radius: 50%; box-shadow: 0 0 0 20px rgba(0, 116, 163, .04), 0 0 0 42px rgba(0, 116, 163, .025); }.hardware-deck-copy h2 { margin: 5px 0 4px; font-size: 25px; letter-spacing: -.6px; }.hardware-deck-copy p { max-width: 540px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }.hardware-deck-copy .hardware-hero-status { display: inline-flex; margin-top: 14px; }.hardware-deck-statuses { padding: 18px; display: grid; align-content: center; gap: 9px; background: rgba(255, 255, 255, .28); border-left: 1px solid rgba(255, 255, 255, .65); }.hardware-deck-stat { padding: 10px 12px; display: flex; align-items: center; gap: 10px; border-radius: 14px; background: rgba(255, 255, 255, .48); border: 1px solid rgba(255, 255, 255, .72); }.hardware-deck-stat .hardware-stat-icon { width: 33px; height: 33px; border-radius: 10px; font-size: 13px; }.hardware-deck-stat small { display: block; color: var(--muted); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }.hardware-deck-stat strong { display: block; margin-top: 1px; font-size: 14px; }
.hardware-deck-stat .hardware-stat-icon.connection-online { background: rgba(6, 137, 121, .14); color: var(--accent); }.hardware-deck-stat .hardware-stat-icon.connection-offline { background: rgba(211, 47, 47, .12); color: var(--danger); }
.hardware-grid { display: grid; grid-template-columns: minmax(310px, .84fr) minmax(0, 1.16fr); gap: 16px; align-items: start; }.hardware-grid .card { padding: 20px; }.hardware-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }.hardware-panel-kicker { color: var(--accent); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }.hardware-panel-kicker i { margin-right: 5px; }.hardware-panel-header h3 { margin: 4px 0 0; font-size: 17px; }.hardware-console-heading p { color: var(--muted); font-size: 12px; margin: 4px 0 0; }.hardware-status-badge { padding: 6px 9px; border-radius: 999px; background: rgba(211, 47, 47, .12); color: var(--danger); font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }.hardware-device-card .field label { font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }.hardware-device-card .field input, .hardware-device-card .field select { font-size: 12.5px; }.glass-subcard.hardware-actuator-card { padding: 15px; border-radius: 16px; background: rgba(255, 255, 255, .30); border: 1px solid rgba(255, 255, 255, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }.btn-glass-actuator { flex: 1; padding: 10px; border-radius: 11px; font-weight: 600; font-size: 12px; border: 1px solid rgba(0, 68, 79, .12); background: rgba(255, 255, 255, .44); color: var(--txt); cursor: pointer; transition: all .2s ease; display: flex; align-items: center; justify-content: center; gap: 7px; }.btn-glass-actuator:hover { background: rgba(255, 255, 255, .7); transform: translateY(-1px); }.btn-glass-on { background: rgba(6, 137, 121, .12) !important; color: var(--accent) !important; border-color: rgba(6, 137, 121, .24) !important; }.btn-glass-on:hover { background: rgba(6, 137, 121, .2) !important; }.btn-glass-off { background: rgba(211, 47, 47, .09) !important; color: var(--danger) !important; border-color: rgba(211, 47, 47, .20) !important; }.btn-glass-off:hover { background: rgba(211, 47, 47, .16) !important; }
.hardware-grid { grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); grid-template-areas: "console device"; }.hardware-console-card { grid-area: console; }.hardware-device-card { grid-area: device; position: sticky; top: 16px; }.hardware-console-card .hardware-panel-header { padding-bottom: 14px; border-bottom: 1px solid rgba(0, 68, 79, .10); }.hardware-console-card .hardware-actuator-card { transition: transform .18s ease, box-shadow .18s ease; }.hardware-console-card .hardware-actuator-card:hover { transform: translateX(3px); box-shadow: 0 8px 20px rgba(0, 68, 79, .07); }
.hardware-device-card .field label i { width: 15px; margin-right: 5px; color: var(--accent); font-size: 11px; text-align: center; }

.users-page { max-width: 1280px; }
.users-back-link {
    width: fit-content; margin-bottom: 12px; padding: 8px 12px; border: 1px solid rgba(255, 255, 255, .82); border-radius: 30px;
    background: rgba(241, 251, 250, .48); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 5px 16px rgba(0, 68, 79, .08), inset 0 1px 0 rgba(255, 255, 255, .75); color: var(--txt); font-size: 12px;
}
.users-back-link:hover { color: var(--accent); background: rgba(255, 255, 255, .66); transform: translateY(-1px); }
.users-hero { min-height: 132px; padding: 22px 28px; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; overflow: hidden; background: linear-gradient(118deg, rgba(241, 251, 250, .84), rgba(205, 241, 239, .54)); }
.users-hero::after { content: ''; width: 150px; height: 150px; border-radius: 50%; position: absolute; right: -48px; top: -72px; background: rgba(104, 194, 220, .25); }
.users-hero-copy, .users-primary-action { position: relative; z-index: 1; }
.users-eyebrow { color: var(--accent); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.users-eyebrow i { margin-right: 6px; }
.users-hero h2 { margin: 5px 0 3px; font-size: 23px; letter-spacing: -.5px; }
.users-hero p { max-width: 580px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.users-primary-action { width: auto; min-width: 126px; padding: 10px 14px; font-size: 13px; justify-content: center; }
.users-nav-tabs { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.users-nav-tabs::-webkit-scrollbar { height: 4px; }
.users-nav-tabs::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.15); border-radius: 999px; }
.users-tab-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 14px; background: var(--glass-bg, rgba(255, 255, 255, 0.4)); border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.6)); color: var(--txt, #00444f); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all 0.22s ease; white-space: nowrap; }
.users-tab-btn:hover { background: var(--glass-strong, rgba(255, 255, 255, 0.7)); transform: translateY(-1px); }
.users-tab-btn.active { background: var(--accent, #068979) !important; color: #ffffff !important; border-color: var(--accent, #068979) !important; box-shadow: 0 4px 14px rgba(6, 137, 121, 0.35); }
.users-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 30px; }
.users-stat-card { padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.users-stat-icon { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; }
.users-stat-icon.blue { background: rgba(0, 116, 163, .13); color: var(--primary); }.users-stat-icon.green { background: rgba(6, 137, 121, .13); color: var(--accent); }.users-stat-icon.aqua { background: rgba(86, 198, 158, .18); color: var(--accent2); }
.users-stat-card small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 500; }.users-stat-card strong { display: block; font-size: 20px; line-height: 1.25; margin-top: 2px; }
.users-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }.users-section-heading h3 { font-size: 18px; margin: 0 0 3px; }.users-section-heading p { color: var(--muted); font-size: 12.5px; }
.users-result-count { color: var(--accent); font-size: 12px; font-weight: 700; padding: 7px 11px; border-radius: 999px; background: rgba(6, 137, 121, .10); white-space: nowrap; }
.users-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.user-registry-card { padding: 20px; display: flex; flex-direction: column; min-height: 196px; transition: transform .2s ease, box-shadow .2s ease; }.user-registry-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 68, 79, .12), inset 0 1px 0 rgba(255, 255, 255, .6); }
.user-card-top { display: flex; align-items: center; gap: 11px; }.user-card-avatar { width: 44px; height: 44px; border-radius: 50%; box-sizing: border-box; border: 2px solid var(--accent); padding: 2px; object-fit: cover; background: transparent; display: block; flex-shrink: 0; }.user-card-identity { min-width: 0; flex: 1; }.user-card-identity h4 { margin: 0 0 2px; font-size: 15px; overflow-wrap: anywhere; }.user-card-identity a { color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; text-decoration: none; }.user-card-identity a:hover { color: var(--accent); }.user-card-identity i { margin-right: 3px; }
.user-role-badge { align-self: flex-start; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; white-space: nowrap; }.user-role-badge.admin { color: var(--primary); background: rgba(0, 116, 163, .12); }.user-role-badge.user { color: var(--accent); background: rgba(6, 137, 121, .12); }
.user-card-divider { height: 1px; margin: 17px 0 13px; background: rgba(0, 68, 79, .10); }.user-card-position { display: grid; grid-template-columns: 18px 1fr; gap: 0 7px; align-items: center; color: var(--muted); font-size: 11px; }.user-card-position i { grid-row: span 2; color: var(--accent); }.user-card-position strong { color: var(--txt); font-size: 12.5px; font-weight: 600; overflow-wrap: anywhere; }
.user-card-actions { margin-top: auto; padding-top: 16px; display: flex; gap: 8px; }.user-action { border: 0; font: inherit; cursor: pointer; transition: .2s; }.user-action.edit { flex: 1; padding: 9px 12px; border-radius: 11px; background: rgba(6, 137, 121, .09); color: var(--accent); font-size: 12px; font-weight: 700; }.user-action.edit:hover { background: rgba(6, 137, 121, .17); }.user-action.delete { width: 37px; border-radius: 11px; background: rgba(211, 47, 47, .08); color: var(--danger); }.user-action.delete:hover { background: rgba(211, 47, 47, .16); }
.users-empty-state { grid-column: 1 / -1; padding: 44px 24px; text-align: center; }.users-empty-state > span { width: 52px; height: 52px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 17px; background: rgba(6, 137, 121, .12); color: var(--accent); font-size: 21px; }.users-empty-state h3 { font-size: 17px; margin-bottom: 5px; }.users-empty-state p { max-width: 390px; margin: 0 auto 18px; color: var(--muted); font-size: 13px; line-height: 1.55; }.users-empty-state .btn { width: auto; margin: auto; padding: 10px 15px; font-size: 13px; }
.users-modal-header { align-items: flex-start; padding-bottom: 16px; border-bottom: 1px solid rgba(0, 68, 79, .10); }
.users-modal-heading { display: flex; align-items: center; gap: 11px; }.users-modal-icon { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: rgba(6, 137, 121, .12); color: var(--accent); }.users-modal-heading h3 { margin: 0; }.users-modal-heading p { margin: 2px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.4; }

.species-page {
    max-width: 1280px;
}

.species-hero {
    min-height: 132px;
    padding: 22px 28px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(118deg, rgba(241, 251, 250, .84), rgba(205, 241, 239, .54));
}

.species-hero::after {
    content: '';
    width: 150px;
    height: 150px;
    border-radius: 50%;
    position: absolute;
    right: -48px;
    top: -72px;
    background: rgba(104, 194, 220, .25);
    filter: blur(2px);
}

.species-hero-copy, .species-primary-action { position: relative; z-index: 1; }
.species-eyebrow { color: var(--accent); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.species-eyebrow i { margin-right: 6px; }
.species-hero h2 { margin: 5px 0 3px; font-size: 23px; letter-spacing: -.5px; }
.species-hero p { max-width: 580px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.species-primary-action { width: auto; min-width: 126px; padding: 10px 14px; font-size: 13px; justify-content: center; }
.species-back-link {
    width: fit-content;
    margin-bottom: 12px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 30px;
    background: rgba(241, 251, 250, .48);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 5px 16px rgba(0, 68, 79, .08), inset 0 1px 0 rgba(255, 255, 255, .75);
    color: var(--txt);
    font-size: 12px;
}
.species-back-link:hover { color: var(--accent); background: rgba(255, 255, 255, .66); transform: translateY(-1px); }

.species-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 30px; }
.species-stat-card { padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.species-stat-icon { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; }
.species-stat-icon.blue { background: rgba(0, 116, 163, .13); color: var(--primary); }
.species-stat-icon.green { background: rgba(6, 137, 121, .13); color: var(--accent); }
.species-stat-icon.aqua { background: rgba(86, 198, 158, .18); color: var(--accent2); }
.species-stat-card small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 500; }
.species-stat-card strong { display: block; font-size: 20px; line-height: 1.25; margin-top: 2px; }

.species-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.species-section-heading h3 { font-size: 18px; margin: 0 0 3px; }
.species-section-heading p { color: var(--muted); font-size: 12.5px; }
.species-result-count { color: var(--accent); font-size: 12px; font-weight: 700; padding: 7px 11px; border-radius: 999px; background: rgba(6, 137, 121, .10); white-space: nowrap; }
.species-lake-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.species-lake-card { padding: 20px; display: flex; flex-direction: column; min-height: 254px; transition: transform .2s ease, box-shadow .2s ease; }
.species-lake-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 68, 79, .12), inset 0 1px 0 rgba(255, 255, 255, .6); }
.species-lake-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.species-card-divider { height: 1px; background: rgba(0, 68, 79, .10); margin: 17px 0 14px; }
.species-card-body { flex: 1; }
.species-card-label { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.species-card-label span:last-child { color: var(--accent); }
.species-chip { padding: 5px 5px 5px 12px; border-radius: 999px; background: rgba(6, 137, 121, .09); border: 1px solid rgba(6, 137, 121, .14); color: var(--txt); font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 5px; }
.species-menu { position: relative; display: inline-flex; }
.species-menu-btn.dot-menu-btn { width: 24px; height: 24px; border-radius: 50%; font-size: 11px; background: transparent; }
.species-menu-btn.dot-menu-btn:hover { background: rgba(6, 137, 121, .14); color: var(--accent); }
.species-menu-dropdown { top: calc(100% + 5px); right: 0; min-width: 118px; z-index: 120; }
.species-menu-dropdown button { width: 100%; border: 0; background: transparent; display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 9px; color: var(--txt); font: inherit; font-size: 12px; cursor: pointer; text-align: left; }
.species-menu-dropdown button:hover { background: rgba(255, 255, 255, .36); }
.species-menu-dropdown button.danger { color: var(--danger); }
.species-menu-dropdown button.danger:hover { background: rgba(211, 47, 47, .10); }
.species-none { color: var(--muted); font-size: 12.5px; padding: 8px 0; }
.species-none i { color: var(--accent2); margin-right: 5px; }
.species-add-action { width: 100%; margin-top: 17px; padding: 10px 12px; border: 1px dashed rgba(6, 137, 121, .35); border-radius: 12px; color: var(--accent); background: rgba(6, 137, 121, .05); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: .2s; }
.species-add-action:hover { background: rgba(6, 137, 121, .12); border-style: solid; }
.species-empty-state { grid-column: 1 / -1; padding: 44px 24px; text-align: center; }
.species-empty-state > span { width: 52px; height: 52px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 17px; background: rgba(6, 137, 121, .12); color: var(--accent); font-size: 21px; }
.species-empty-state h3 { font-size: 17px; margin-bottom: 5px; }
.species-empty-state p { max-width: 390px; margin: 0 auto 18px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.species-empty-state .btn { width: auto; margin: auto; padding: 10px 15px; font-size: 13px; }

.chip {
    padding: 9px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid var(--glass-border);
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.chip i {
    color: var(--danger);
    cursor: pointer;
    font-size: 12px;
}

/* lake cards */
.lake-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lake-identity {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lake-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--glass-border);
    flex-shrink: 0;
}

.lake-img-placeholder {
    display: grid;
    place-items: center;
    font-size: 20px;
    color: var(--accent);
    background: rgba(255, 255, 255, .15);
}

.lake-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.lake-count {
    font-size: 12px;
    color: var(--muted);
}

.lake-meta {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    font-size: 11.5px;
    color: var(--muted);
}

.lake-meta i {
    margin-right: 4px;
    font-size: 10px;
}

.lake-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lake-add {
    color: var(--accent);
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.lake-add:hover {
    text-decoration: underline;
}

/* 3-dot dropdown menu */
.dot-menu {
    position: relative;
}

.dot-menu-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: var(--muted);
    cursor: pointer;
    font-size: 14px;
    display: grid;
    place-items: center;
    transition: .2s;
}

.dot-menu-btn:hover {
    background: rgba(255, 255, 255, .15);
    color: var(--txt);
}

.dot-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    min-width: 130px;
    padding: 6px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    display: none;
    z-index: 100;
}

.dot-menu-dropdown.show {
    display: block;
}

.dot-menu-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    color: var(--txt);
    cursor: pointer;
    transition: .15s;
    text-decoration: none;
}

.dot-menu-dropdown a:hover {
    background: rgba(255, 255, 255, .3);
}

.dot-menu-dropdown a.danger {
    color: var(--danger);
}

.dot-menu-dropdown a.danger:hover {
    background: rgba(255, 69, 58, .1);
}

/* species input with switch button */
.species-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.species-input-wrap>div {
    flex: 1;
}

.switch-btn {
    width: 42px;
    height: 42px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    color: var(--accent);
    cursor: pointer;
    font-size: 15px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: .2s;
}

.switch-btn:hover {
    background: rgba(255, 255, 255, .2);
    transform: rotate(180deg);
}

/* ===== Mobile top bar (hidden on desktop) ===== */
.mobile-top {
    display: none;
}

@media(max-width:920px) {

    /* Floating Bottom Dock Wrapper */
    .sidebar {
        position: fixed !important;
        bottom: 20px !important;
        top: auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: calc(100% - 40px) !important;
        max-width: 450px !important;
        height: 70px !important;
        margin: 0 !important;
        z-index: 9999 !important;
        flex-direction: row !important;
        padding: 0 16px !important;
        border-radius: 40px !important;
        background: var(--glass-bg) !important;
        backdrop-filter: blur(28px) saturate(160%) !important;
        -webkit-backdrop-filter: blur(28px) saturate(160%) !important;
        border: 1px solid var(--glass-border) !important;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4) !important;
    }

    /* Completely hide elements that don't belong in a bottom bar */
    .sidebar .brand,
    .sidebar .side-foot,
    .menu .nav-label,
    .role-switch {
        display: none !important;
    }

    /* Distribute the circular buttons evenly */
    .menu {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-around !important;
        align-items: center !important;
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
    }

    /* Circular Action Items */
    .menu a {
        display: grid !important;
        place-items: center !important;
        width: 48px !important;
        height: 48px !important;
        flex: none !important;
        padding: 0 !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .menu a:hover {
        background: rgba(255, 255, 255, 0.1) !important;
    }

    /* ===== REQUESTED ACTIVE STATE STYLE ===== */
    .menu a.active {
        background: var(--glass-strong) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2) !important;
        border-color: transparent !important;
        /* Blends the outer border away gracefully */
    }

    .menu a.active i {
        color: var(--accent) !important;
        opacity: 1 !important;
    }

    /* ======================================= */

    .menu a:active {
        transform: scale(0.9) !important;
    }

    /* Hide text labels entirely */
    .menu a span {
        display: none !important;
    }

    /* Center and size icons inside the circle */
    .menu a i {
        font-size: 18px !important;
        width: auto !important;
        margin: 0 !important;
    }

    /* Handle Profile Nav Avatar cleanly */
    .menu a.profile-nav {
        display: grid !important;
        background: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
    }

    .menu a.profile-nav .avatar {
        width: 40px !important;
        height: 40px !important;
        font-size: 13px !important;
        border: 2px solid rgba(255, 255, 255, 0.15) !important;
    }

    .menu a.profile-nav.active .avatar {
        border-color: var(--accent) !important;
    }

    /* Mobile Layout Fixes */
    .app {
        flex-direction: column !important;
        min-height: 100vh !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    /* Content Layout adjustments */
    .content {
        padding: 16px 14px 110px !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .grid-2,
    .grid-2b,
    .dash-grid {
        grid-template-columns: 100% !important;
        gap: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .dash-left,
    .dash-right {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        gap: 16px !important;
    }

    .card {
        padding: 18px 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        margin-bottom: 18px !important;
    }

    .kpi-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 16px !important;
    }

    .stat {
        padding: 16px 14px !important;
        min-width: 0 !important;
    }

    .kpi-stat {
        padding: 12px 14px !important;
        min-width: 0 !important;
    }

    .stat h2 {
        font-size: 20px !important;
        word-break: break-word !important;
    }

    .kpi-stat h2 {
        font-size: 18px !important;
        word-break: break-word !important;
    }

    /* Mobile Lake Detail Panel Layout */
    .lake-detail-panel {
        flex-direction: column !important;
        gap: 16px !important;
        width: 100% !important;
    }

    .lake-selector {
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        max-height: none !important;
        padding: 4px 2px 10px !important;
        width: 100% !important;
        gap: 12px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: thin !important;
    }

    .lake-selector::-webkit-scrollbar {
        height: 4px !important;
    }

    .lake-detail-separator {
        width: 100% !important;
        height: 1px !important;
        margin: 0 !important;
    }

    .lake-detail-top {
        display: flex !important;
        flex-direction: row !important;
        gap: 14px !important;
        align-items: flex-start !important;
    }

    .lake-detail-img {
        width: 140px !important;
        height: 100px !important;
        object-fit: cover !important;
        border-radius: 12px !important;
    }

    .lake-detail-info {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        flex: 1 !important;
    }

    .pie-wrap {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 14px !important;
        width: 100% !important;
    }

    .monthly-chart {
        height: 180px !important;
        width: 100% !important;
    }

    .chart-bars {
        gap: 4px !important;
    }

    .topbar {
        margin-bottom: 18px !important;
    }

    .topbar h1 {
        font-size: 22px !important;
    }

    .mobile-top {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        margin: 0 0 16px !important;
    }

    .mobile-top .brand {
        margin: 0 !important;
        padding: 0 !important;
    }

    .mobile-top .brand .mark {
        width: 138px !important;
    }

    .mobile-notification {
        width: 40px !important;
        height: 40px !important;
        border-radius: 14px !important;
        text-decoration: none !important;
    }

    .topbar .top-actions {
        display: none !important;
    }

    /* Quick action promo card mobile styles */
    .quick-action-promo {
        padding: 22px 16px 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .quick-action-promo h3 {
        font-size: 18px !important;
    }

    .quick-action-promo img {
        max-width: 220px !important;
        max-height: 160px !important;
    }

    .quick-action-promo .btn-wrap {
        flex-wrap: wrap !important;
        justify-content: center !important;
        width: 100% !important;
    }
}

/* Hide profile nav by default (desktop) */
.profile-nav {
    display: none !important;
}

/* Show only on mobile */
@media (max-width:920px) {
    .profile-nav {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
}

/* extra small screens (< 540px) */
@media(max-width:540px) {
    .content {
        padding: 12px 10px 105px !important;
    }

    .stats {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .kpi-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        margin-bottom: 14px !important;
    }

    .stat {
        padding: 14px 14px !important;
    }

    .kpi-stat {
        padding: 10px 12px !important;
    }

    .stat h2 {
        font-size: 19px !important;
    }

    .kpi-stat h2 {
        font-size: 16px !important;
    }

    .kpi-stat small {
        font-size: 11px !important;
    }

    .kpi-stat .trend {
        font-size: 10px !important;
    }

    .kpi-stat .ico {
        width: 32px !important;
        height: 32px !important;
        font-size: 13px !important;
    }

    .lake-detail-top {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .lake-detail-img {
        width: 100% !important;
        max-width: 280px !important;
        height: 130px !important;
        margin: 0 auto !important;
    }

    .lake-detail-info {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        width: 100% !important;
    }

    .monthly-chart {
        height: 160px !important;
    }

    .chart-y-axis {
        font-size: 10px !important;
        padding-bottom: 16px !important;
    }

    .bar-group span {
        font-size: 9.5px !important;
    }

    .quick-action-promo {
        padding: 20px 12px 18px !important;
    }

    .quick-action-promo h3 {
        font-size: 16.5px !important;
    }

    .quick-action-promo img {
        max-width: 180px !important;
        max-height: 140px !important;
    }

    .quick-action-promo a {
        padding: 7px 14px !important;
        font-size: 11.5px !important;
    }
}

/* ===== Custom Universal SweetAlert2 Glass Theme ===== */
.swal2-popup {
    backdrop-filter: blur(28px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(160%) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius, 26px) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
    color: var(--txt, #1a2e1a) !important;
    font-family: inherit !important;
}

.swal2-title {
    color: var(--txt, #1a2e1a) !important;
    font-weight: 700 !important;
    font-size: 20px !important;
}

.swal2-html-container {
    color: var(--muted, rgba(30, 60, 30, .75)) !important;
    font-size: 14px !important;
}

.swal2-confirm {
    background: var(--accent, #068979) !important;
    color: #fff !important;
    border-radius: 14px !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    box-shadow: 0 4px 14px rgba(6, 137, 121, 0.35) !important;
    border: none !important;
}

/* SweetAlert confirmations must sit above the application's modal overlays. */
.swal2-container {
    z-index: 20000 !important;
}

.swal2-confirm:hover {
    background: var(--accent2, #56c69e) !important;
}

.swal2-cancel {
    background: rgba(211, 47, 47, 0.12) !important;
    color: #d32f2f !important;
    border: 1px solid rgba(211, 47, 47, 0.25) !important;
    border-radius: 14px !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.swal2-cancel:hover {
    background: rgba(211, 47, 47, 0.22) !important;
}

/* ===== Reports Page Styles ===== */
.reports-nav-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.reports-nav-tabs::-webkit-scrollbar {
    height: 4px;
}

.reports-nav-tabs::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 999px;
}

.reports-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 14px;
    background: var(--glass-bg, rgba(255, 255, 255, 0.4));
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.6));
    color: var(--txt, #00444f);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s ease;
    white-space: nowrap;
}

.reports-tab-btn:hover {
    background: var(--glass-strong, rgba(255, 255, 255, 0.7));
    transform: translateY(-1px);
}

.reports-tab-btn.active {
    background: var(--accent, #068979) !important;
    color: #ffffff !important;
    border-color: var(--accent, #068979) !important;
    box-shadow: 0 4px 14px rgba(6, 137, 121, 0.35);
}

/* Species registry responsive layout */
@media (max-width: 760px) {
    .daily-report-toolbar { padding: 22px 20px; align-items: flex-start; flex-direction: column; }.daily-date-form { width: 100%; min-width: 0; }.daily-date-actions { width: 100%; }.daily-date-actions input { flex: 1; }.daily-kpis { gap: 10px; }

    .reports-options-grid { grid-template-columns: 1fr; gap: 12px; }.reports-options-intro { padding: 24px 20px; }.report-option-card { min-height: 0; }

    .hardware-command-deck { min-height: 0; grid-template-columns: 1fr; }.hardware-deck-copy { padding: 24px 20px; }.hardware-deck-copy h2 { font-size: 21px; }.hardware-deck-statuses { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 12px; border-top: 1px solid rgba(255, 255, 255, .65); border-left: 0; }.hardware-deck-stat { padding: 9px; gap: 7px; }.hardware-deck-stat .hardware-stat-icon { width: 30px; height: 30px; }.hardware-deck-stat strong { font-size: 13px; }.hardware-grid { grid-template-columns: 1fr; grid-template-areas: "console" "device"; gap: 12px; }.hardware-device-card { position: static; }

    .users-hero { min-height: 0; padding: 24px 20px; align-items: flex-start; flex-direction: column; }
    .users-hero h2 { font-size: 21px; }
    .users-primary-action { width: 100%; }
    .users-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
    .users-stat-card { padding: 12px 10px; gap: 8px; }
    .users-stat-icon { width: 34px; height: 34px; border-radius: 11px; font-size: 13px; }
    .users-stat-card small { font-size: 10px; }.users-stat-card strong { font-size: 16px; }
    .users-grid { grid-template-columns: 1fr; gap: 12px; }

    .species-hero {
        min-height: 0;
        padding: 24px 20px;
        align-items: flex-start;
        flex-direction: column;
    }

    .species-hero h2 { font-size: 21px; }
    .species-primary-action { width: 100%; }
    .species-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
    .species-stat-card { padding: 12px 10px; gap: 8px; }
    .species-stat-icon { width: 34px; height: 34px; border-radius: 11px; font-size: 13px; }
    .species-stat-card small { font-size: 10px; }
    .species-stat-card strong { font-size: 16px; }
    .species-lake-grid { grid-template-columns: 1fr; gap: 12px; }
    .species-lake-card { min-height: 0; padding: 17px; }
}

@media (max-width: 480px) {
    .daily-report-toolbar { padding: 20px 17px; }.daily-report-toolbar h2 { font-size: 22px; }.daily-date-actions { align-items: stretch; flex-direction: column; }.daily-date-actions input, .daily-export-btn { width: 100%; }.daily-kpis { grid-template-columns: 1fr; }.daily-kpi-card { padding: 15px; }.daily-table-header { padding: 17px 16px 12px; }.daily-price-note { margin: 0 16px 12px; }

    .reports-options-intro { padding: 21px 17px; }.reports-options-intro h2 { font-size: 22px; }.report-option-card { padding: 18px 17px !important; }

    .hardware-deck-copy { padding: 21px 17px; }.hardware-deck-copy p { font-size: 12px; line-height: 1.55; }.hardware-deck-statuses { grid-template-columns: 1fr; }.hardware-deck-stat { padding: 8px 10px; }.hardware-hero-status { font-size: 10px; }.hardware-grid .card { padding: 17px; }.hardware-panel-header { margin-bottom: 16px; }.hardware-actuator-card > div[style*="display:flex"] { flex-wrap: wrap; }.btn-glass-actuator { min-width: 120px; }

    .users-hero { padding: 21px 17px; }.users-hero p { font-size: 12.5px; line-height: 1.55; }
    .users-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }.users-stat-note { grid-column: 1 / -1; }
    .users-section-heading { align-items: flex-start; flex-direction: column; }.users-result-count { padding: 5px 9px; }
    .user-registry-card { padding: 17px; }.user-card-top { align-items: flex-start; }.user-card-avatar { width: 40px; height: 40px; border-radius: 50%; }

    .species-hero { padding: 21px 17px; }
    .species-hero p { font-size: 12.5px; line-height: 1.55; }
    .species-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .species-stat-note { grid-column: 1 / -1; }
    .species-section-heading { align-items: flex-start; flex-direction: column; }
    .species-result-count { padding: 5px 9px; }
    .species-lake-top { gap: 8px; }
    .lake-identity { gap: 10px; min-width: 0; }
    .lake-img { width: 46px; height: 46px; }
    .lake-name { font-size: 15px; overflow-wrap: anywhere; }
    .lake-meta { flex-wrap: wrap; gap: 4px 9px; }
    .dot-menu-btn { width: 32px; height: 32px; }
}

/* Stacked Chart Component */
.stacked-chart-card {
    margin-bottom: 24px;
}

.stacked-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.stacked-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--txt, #1a2e1a);
}

.stacked-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.stacked-chart-body {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    height: 240px;
    position: relative;
    padding-left: 45px;
    padding-bottom: 28px;
}

.stacked-y-axis {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 11px;
    color: var(--muted, #666);
    font-weight: 600;
    width: 35px;
    text-align: right;
    padding-right: 8px;
}

.stacked-bars-wrapper {
    display: flex;
    flex: 1;
    gap: 8px;
    align-items: flex-end;
    height: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.stacked-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    position: relative;
    justify-content: flex-end;
}

.stacked-bar-container {
    width: 100%;
    max-width: 44px;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    height: 100%;
    justify-content: flex-start;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.03);
    position: relative;
}

.stacked-segment {
    width: 100%;
    transition: height 0.35s ease;
    position: relative;
}

.stacked-col-label {
    position: absolute;
    bottom: -24px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--muted, #666);
}

/* Custom Tooltip */
.stacked-col:hover .stacked-bar-container {
    box-shadow: 0 0 0 2px var(--accent, #068979);
}

.stacked-tooltip {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.88);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.stacked-col:hover .stacked-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* ===== Binder Management Styles ===== */
.binder-page {
    max-width: 1280px;
}
.binder-back-link {
    width: fit-content;
    margin-bottom: 12px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 30px;
    background: rgba(241, 251, 250, .48);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 5px 16px rgba(0, 68, 79, .08), inset 0 1px 0 rgba(255, 255, 255, .75);
    color: var(--txt);
    font-size: 12px;
}
.binder-back-link:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, .66);
    transform: translateY(-1px);
}
.binder-hero {
    min-height: 128px;
    padding: 22px 28px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    overflow: hidden;
}
.binder-hero::after {
    content: '';
    width: 160px;
    height: 160px;
    border-radius: 50%;
    position: absolute;
    right: -40px;
    top: -65px;
    background: rgba(255, 159, 10, .18);
}
.binder-hero-copy, .binder-primary-action {
    position: relative;
    z-index: 1;
}
.binder-eyebrow {
    color: #f59e0b;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.binder-eyebrow i {
    margin-right: 6px;
}
.binder-hero h2 {
    margin: 5px 0 3px;
    font-size: 23px;
    letter-spacing: -.5px;
}
.binder-hero p {
    max-width: 580px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}
.binder-primary-action {
    width: auto;
    min-width: 126px;
    padding: 10px 16px;
    font-size: 13px;
    justify-content: center;
}
.binder-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}
.binder-section-heading h3 {
    font-size: 18px;
    margin: 0 0 3px;
}
.binder-section-heading p {
    color: var(--muted);
    font-size: 12.5px;
}
.binder-result-count {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(6, 137, 121, .10);
    white-space: nowrap;
}
.binder-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.binder-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.binder-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(0, 68, 79, .12), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.binder-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}
.binder-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(255, 159, 10, .25), rgba(6, 137, 121, .25));
    color: var(--accent);
    font-size: 16px;
    flex-shrink: 0;
    border: 1px solid rgba(6, 137, 121, .2);
}
.binder-identity {
    min-width: 0;
    flex: 1;
}
.binder-identity h4 {
    margin: 0 0 4px;
    font-size: 15.5px;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.binder-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
}
.binder-type-badge.starch {
    color: #d97706;
    background: rgba(245, 158, 11, .15);
}
.binder-type-badge.liquid {
    color: var(--primary);
    background: rgba(0, 116, 163, .13);
}
.binder-type-badge.mineral {
    color: #78350f;
    background: rgba(180, 83, 9, .15);
}
.binder-type-badge.organic {
    color: var(--accent);
    background: rgba(6, 137, 121, .13);
}
.binder-card-divider {
    height: 1px;
    margin: 14px 0 12px;
    background: rgba(0, 68, 79, .10);
}
.binder-desc {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    margin: 0 0 12px;
    flex: 1;
}
.binder-ratio-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 10px;
    background: rgba(6, 137, 121, .07);
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 14px;
}
.binder-ratio-chip i {
    color: var(--accent);
}
.binder-ratio-chip strong {
    color: var(--txt);
    font-size: 11.5px;
    margin-left: auto;
}
.binder-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}
.binder-action {
    border: 0;
    font: inherit;
    cursor: pointer;
    transition: .2s;
}
.binder-action.edit {
    flex: 1;
    padding: 9px 12px;
    border-radius: 11px;
    background: rgba(6, 137, 121, .09);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
}
.binder-action.edit:hover {
    background: rgba(6, 137, 121, .17);
}
.binder-action.delete {
    width: 37px;
    border-radius: 11px;
    background: rgba(211, 47, 47, .08);
    color: var(--danger);
}
.binder-action.delete:hover {
    background: rgba(211, 47, 47, .16);
}
.binders-empty-state {
    grid-column: 1 / -1;
    padding: 44px 24px;
    text-align: center;
}
.binders-empty-state > span {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: rgba(245, 158, 11, .15);
    color: #f59e0b;
    font-size: 21px;
}
.binders-empty-state h3 {
    font-size: 17px;
    margin-bottom: 5px;
}
.binders-empty-state p {
    max-width: 420px;
    margin: 0 auto 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}
.binders-empty-state .btn {
    width: auto;
    margin: auto;
    padding: 10px 16px;
    font-size: 13px;
}
.binder-modal-header {
    align-items: flex-start;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 68, 79, .10);
}
.binder-modal-heading {
    display: flex;
    align-items: center;
    gap: 11px;
}
.binder-modal-icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: rgba(245, 158, 11, .15);
    color: #f59e0b;
    font-size: 16px;
}
.binder-modal-heading h3 {
    margin: 0;
}
.binder-modal-heading p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .binder-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .binder-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    .binder-primary-action {
        width: 100%;
    }
    .binder-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Notification Drawer (Slide in from Right) ===== */
body.notif-drawer-open {
    overflow: hidden !important;
    touch-action: none;
}
.notif-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overscroll-behavior: contain;
}
.notif-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.notif-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 92vw;
    background: rgba(241, 251, 250, 0.94);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-left: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: -10px 0 35px rgba(0, 68, 79, 0.16);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    overscroll-behavior: contain;
}
.notif-drawer.active {
    transform: translateX(0);
}
.notif-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px 16px;
    border-bottom: 1px solid rgba(0, 68, 79, 0.10);
    background: rgba(255, 255, 255, 0.45);
}
.notif-drawer-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.notif-drawer-title h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--txt);
}
.notif-drawer-badge {
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
}
.notif-drawer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.notif-drawer-btn {
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: 0.18s;
}
.notif-drawer-btn:hover {
    color: var(--accent);
    background: rgba(6, 137, 121, 0.1);
}
.notif-drawer-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 68, 79, 0.08);
    color: var(--txt);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: 0.18s;
}
.notif-drawer-close:hover {
    background: rgba(211, 47, 47, 0.15);
    color: var(--danger);
    transform: rotate(90deg);
}
.notif-drawer-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.notif-drawer-item {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 10px rgba(0, 68, 79, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: relative;
}
.notif-drawer-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 68, 79, 0.1);
    background: rgba(255, 255, 255, 0.9);
}
.notif-drawer-item.is-unread {
    border-left: 4px solid var(--accent);
    background: rgba(205, 241, 239, 0.55);
}

/* Floating / Fixed Footer to See All Notifications */
.notif-drawer-footer {
    padding: 10px 14px;
    border-top: 1px solid rgba(0, 68, 79, 0.10);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 -4px 18px rgba(0, 68, 79, 0.06);
    z-index: 5;
}
.notif-see-all-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent) 0%, #057063 100%);
    color: #ffffff !important;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(6, 137, 121, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.notif-see-all-btn:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 20px rgba(6, 137, 121, 0.38);
    filter: brightness(1.05);
    color: #ffffff !important;
    text-decoration: none;
}
.notif-see-all-btn:active {
    transform: translateY(0);
}
.notif-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.notif-item-type-badge {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 7px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    border: 1px solid transparent;
}
.notif-item-type-badge.batch {
    background: rgba(0, 116, 163, 0.12);
    color: #0074a3;
    border-color: rgba(0, 116, 163, 0.28);
}
.notif-item-type-badge.end-batch {
    background: rgba(229, 57, 53, 0.14);
    color: #c62828;
    border-color: rgba(229, 57, 53, 0.32);
}
.notif-item-type-badge.system {
    background: rgba(142, 68, 173, 0.18);
    color: #8e44ad;
    border-color: rgba(142, 68, 173, 0.25);
}
.notif-item-type-badge.default {
    background: rgba(6, 137, 121, 0.14);
    color: var(--accent);
    border-color: rgba(6, 137, 121, 0.25);
}
.notif-item-time {
    font-size: 11px;
    color: var(--muted);
}
.notif-item-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--txt);
    margin: 0;
    line-height: 1.3;
}
.notif-item-desc {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
    line-height: 1.45;
}
.notif-batch-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px dashed rgba(0, 68, 79, 0.15);
}
.notif-action-btn {
    flex: 1;
    padding: 7px 10px;
    border-radius: 9px;
    font-size: 11.5px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: 0.18s;
}
.notif-action-btn.approve {
    background: var(--accent);
    color: #ffffff;
}
.notif-action-btn.approve:hover {
    background: #056a5e;
    transform: translateY(-1px);
}
.notif-action-btn.reject {
    background: rgba(211, 47, 47, 0.12);
    color: var(--danger);
}
.notif-action-btn.reject:hover {
    background: rgba(211, 47, 47, 0.22);
    transform: translateY(-1px);
}
.notif-status-badge {
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.notif-status-badge.approved {
    background: rgba(48, 209, 88, 0.18);
    color: #27ae60;
}
.notif-status-badge.rejected {
    background: rgba(211, 47, 47, 0.14);
    color: var(--danger);
}
.notif-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}
.notif-empty-state i {
    font-size: 38px;
    color: var(--accent);
    opacity: 0.5;
    margin-bottom: 12px;
    display: block;
}

/* Liquid Glass Circular Notification Bell Button */
.notif-bell-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 16px rgba(0, 68, 79, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    color: var(--txt);
    font-size: 16px;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
    margin: 0;
}

.notif-bell-btn:hover {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 68, 79, 0.14), inset 0 1px 0 rgba(255, 255, 255, 1);
    color: var(--accent);
}

.notif-bell-btn:active {
    transform: translateY(0) scale(0.96);
}

/* Notification Count Pill on Bell Icon - Perfect Centered Circle */
.notif-count-pill {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    min-width: 20px;
    max-width: 20px;
    border-radius: 50% !important;
    background: #e53935;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 2px 6px rgba(229, 57, 53, 0.55);
    border: 2px solid #ffffff;
    pointer-events: none;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-variant-numeric: tabular-nums;
    animation: notifPulse 2.4s infinite ease-in-out;
}
.notif-count-pill:empty,
.notif-count-pill[data-count="0"] {
    display: none !important;
}

@keyframes notifPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

/* ===== Real-Time Toast Notifications (Floating Glass) ===== */
.notif-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
    width: calc(100vw - 48px);
    pointer-events: none;
}
.notif-toast-item {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 36px rgba(0, 68, 79, 0.16), 0 2px 8px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
}
.notif-toast-item:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 16px 42px rgba(0, 68, 79, 0.22);
}
.notif-toast-item.dismissing {
    animation: toastSlideOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.notif-toast-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent) 0%, #0074a3 100%);
    border-radius: 4px 0 0 4px;
}
.toast-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(6, 137, 121, 0.12);
    border: 1px solid rgba(6, 137, 121, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}
.toast-body-wrap {
    flex: 1;
    min-width: 0;
}
.toast-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}
.toast-type-pill {
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
}
.toast-time {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
}
.toast-title {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--txt);
    line-height: 1.3;
    margin-bottom: 2px;
}
.toast-desc {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.45;
    word-break: break-word;
}
.toast-close-btn {
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0 0 0 6px;
    transition: color 0.18s ease;
}
.toast-close-btn:hover {
    color: var(--danger);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(60px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}
@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(70px) scale(0.92);
    }
}
@media (max-width: 480px) {
    .notif-toast-container {
        top: 14px;
        right: 14px;
        left: 14px;
        width: auto;
    }
}


