.section-overlay {
  background-image: url('../img/cover-4-dark.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 100%;
}

.section-mask {
  background-size: 4.6875rem;
  background-color: var(--bs-dark);
  background-image: linear-gradient(0deg, rgba(0, 0, 0, 0), var(--bs-dark) 96%), url('../img/pattern-dark.png');
  height: 100%;
  width: 100%;
}

.w-50-px {
  width: 3.125rem !important;
}

.h-50-px {
  height: 3.125rem !important;
}

.no-link {
  color: inherit;
  text-decoration: none;
}

/* chart container */
.chart-wrap {
  padding: 0px; 
  width: 100%;
  height: 100%;
  /* min-height: 50px; */
}

/*
<!-- ApexChart -->
<div class="chart-wrap" >

@if (Model.ErrorMessage is not null) {
    <div class="state-overlay"> <div class="state-icon">⚠️</div> <p class="state-msg error">@Model.ErrorMessage</p> </div>
}

else if (!Model.HasData && Model.SelectedField is null) {
    <div class="state-overlay" id="emptyState"> <div class="state-icon">📊</div> <p class="state-msg">Choose a bucket, measurement, and field, then click <strong>Run Query</strong>.</p> </div>
}

<div id="loadingState" class="state-overlay" style="display:none;" >
<div class="spinner" > </div >
<p class="state-msg" > Fetching data…</p >
</div >

<div id="apexChart" > </div >
</div >

@section Styles {
    <style>*/
    /* ── Design System ─────────────────────────────────────── */
    /*:root

{
    --bg: #080c14;
    --surface: #0e1520;
    --surface2: #161e2e;
    --border: #1e2d45;
    --accent: #00d4ff;
    --accent2: #7b5ea7;
    --text: #c8d8ea;
    --text-dim: #5a7a9a;
    --danger: #ff4d6d;
    --success: #00e5a0;
    --radius: 10px;
    --font-mono: "JetBrains Mono", "Fira Code", monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Sora", "Segoe UI", sans-serif;
    min-height: 100vh;
}*/

/* ── Layout ────────────────────────────────────────────── */
/*.ts-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-rows: auto 1fr;
    min-height: calc(100vh - 60px);
    gap: 0;
}*/

/* ── Topbar ─────────────────────────────────────────────  */
/*.ts-topbar {
    grid-column: 1 / -1;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

    .ts-topbar .logo-icon {
        width: 32px;
        height: 32px;
        background: linear-gradient(135deg, var(--accent), var(--accent2));
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
    }

    .ts-topbar h1 {
        font-size: 1rem;
        font-weight: 600;
        letter-spacing: .04em;
        color: #fff;
    }

    .ts-topbar .breadcrumb {
        font-size: .75rem;
        color: var(--text-dim);
        font-family: var(--font-mono);
        margin-left: auto;
    }*/

/* ── Sidebar ─────────────────────────────────────────────  */
/*.ts-sidebar {
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 20px 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-label {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding-left: 2px;
}*/

/* selects */
/*.ts-select {
    appearance: none;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: .82rem;
    padding: 9px 32px 9px 12px;
    width: 100%;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a7a9a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color .2s, box-shadow .2s;
}

    .ts-select:focus {
        outline: none;
        border-color: var(--accent);
        box-shadow: 0 0 0 2px rgba(0,212,255,.15);
    }

    .ts-select:disabled {
        opacity: .4;
        cursor: not-allowed;
    }*/

/* range pills */
/*.range-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.range-pill {
    font-size: .72rem;
    font-family: var(--font-mono);
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface2);
    color: var(--text-dim);
    cursor: pointer;
    transition: all .15s;
}

    .range-pill:hover, .range-pill.active {
        border-color: var(--accent);
        color: var(--accent);
        background: rgba(0,212,255,.07);
    }*/

/* window input */
/*.input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ts-input {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: .82rem;
    padding: 9px 12px;
    width: 80px;
    font-family: var(--font-mono);
    transition: border-color .2s;
}

    .ts-input:focus {
        outline: none;
        border-color: var(--accent);
    }

.input-unit {
    font-size: .75rem;
    color: var(--text-dim);
}*/

/* apply button */
/*.btn-apply {
    background: linear-gradient(135deg, var(--accent), #0099bb);
    border: none;
    border-radius: var(--radius);
    color: #000;
    font-size: .82rem;
    font-weight: 700;
    padding: 10px 16px;
    cursor: pointer;
    width: 100%;
    letter-spacing: .04em;
    transition: opacity .2s, transform .1s;
}

    .btn-apply:hover {
        opacity: .9;
    }

    .btn-apply:active {
        transform: scale(.98);
    }*/

/* ── Main chart area ────────────────────────────────────── */
/*.ts-main {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
}*/

/* stat bar */
/*.stat-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 10px 24px;
    display: flex;
    gap: 32px;
    align-items: center;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-val {
    font-size: .92rem;
    font-weight: 600;
    font-family: var(--font-mono);
    color: #fff;
}

.stat-key {
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-dim);
}

.stat-badge {
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
}

.badge-live {
    background: rgba(0,229,160,.12);
    color: var(--success);
    border: 1px solid rgba(0,229,160,.3);
}

.badge-empty {
    background: rgba(255,77,109,.1);
    color: var(--danger);
    border: 1px solid rgba(255,77,109,.3);
}

.badge-ready {
    background: rgba(0,212,255,.1);
    color: var(--accent);
    border: 1px solid rgba(0,212,255,.3);
}*/

/* chart container */
/*.chart-wrap {
    flex: 1;
    padding: 24px;
    position: relative;
    min-height: 420px;
}

#apexChart {
    width: 100%;
    height: 100%;
    min-height: 400px;
}*/

/* empty / error states */
/*.state-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    pointer-events: none;
}

.state-icon {
    font-size: 2.5rem;
    opacity: .35;
}

.state-msg {
    font-size: .85rem;
    color: var(--text-dim);
    text-align: center;
    max-width: 280px;
}

    .state-msg.error {
        color: var(--danger);
    }*/

/* loading spinner */
/*.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}*/

/* ── Responsive ─────────────────────────────────────────── */
/*@@media (max-width: 768px) {
    .ts-layout {
        grid-template-columns: 1fr;
    }

    .ts-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .stat-bar {
        flex-wrap: wrap;
        gap: 16px;
    }
}
*/
