/* ==========================================================================
   STYLING DASHBOARD NEON (DARK BLUE CYBER MODE - FIEL À IMAGEM DE REFERÊNCIA)
   ========================================================================== */

#view-dashboard {
    background-color: #070c1e;
    color: #e2e8f0;
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.dash-layout {
    display: flex;
    min-height: 100vh;
}

/* DASHBOARD SIDEBAR */
.dash-sidebar {
    width: 70px;
    background-color: #0b1329;
    border-right: 1px solid #1e293b;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
}

.dash-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 800;
    color: #06b6d4;
    margin-bottom: 40px;
}

.dash-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dash-nav li {
    font-size: 1.4rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: background 0.2s;
    opacity: 0.6;
}

.dash-nav li:hover, .dash-nav li.active {
    opacity: 1;
    background-color: rgba(6, 182, 212, 0.15);
}

/* DASHBOARD MAIN CONTAINER */
.dash-main {
    flex: 1;
    padding: 24px 32px;
    overflow-y: auto;
}

.dash-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.dash-header-bar h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.dash-header-bar p {
    font-size: 0.85rem;
    color: #64748b;
}

.dash-top-actions {
    display: flex;
    gap: 12px;
}

.btn-dash {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.btn-cyan {
    background-color: #06b6d4;
    color: #070c1e;
}

.btn-outline {
    background: transparent;
    border: 1px solid #334155;
    color: #cbd5e1;
}

/* DASHBOARD GRID SYSTEM */
.dash-grid {
    display: grid;
    grid-template-columns: 260px 1fr 340px;
    gap: 20px;
}

.dash-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* CARDS GERAI */
.dash-card, .metric-card {
    background-color: #0b1329;
    border: 1px solid #1e293b;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* METRICS COLUMN (LEFT) */
.metric-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #94a3b8;
}

.metric-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.metric-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
}

.sparkline {
    width: 90px;
    height: 25px;
}

/* OVERVIEW CARD (CIRCLES) */
.card-overview h3 {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.circles-row {
    display: flex;
    justify-content: space-around;
}

.circle-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.circle-chart {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: conic-gradient(var(--c-color) calc(var(--percent) * 1%), #1e293b 0);
}

.green-circle { --c-color: #10b981; }
.blue-circle { --c-color: #3b82f6; }

.circle-inner {
    width: 85px;
    height: 85px;
    background-color: #0b1329;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.c-val {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
}

.c-lbl {
    font-size: 0.65rem;
    color: #94a3b8;
}

.circle-trend {
    font-size: 0.75rem;
    text-align: center;
}

.green-text { color: #10b981; }
.blue-text { color: #3b82f6; }

/* BAR CHART (HISTORICO) */
.card-history {
    flex: 1;
}

.card-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-title-bar h3 {
    font-size: 0.95rem;
    color: #ffffff;
}

.badge-avg {
    font-size: 0.75rem;
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.bar-chart-container {
    display: flex;
    gap: 16px;
    height: 180px;
    position: relative;
}

.y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.65rem;
    color: #64748b;
}

.chart-bars-area {
    flex: 1;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    position: relative;
}

.avg-line {
    position: absolute;
    top: 40%;
    left: 0;
    right: 0;
    border-top: 2px dashed #06b6d4;
    z-index: 1;
}

.bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
    justify-content: flex-end;
    z-index: 2;
}

.bar {
    width: 14px;
    background-color: #334155;
    border-radius: 4px 4px 0 0;
}

.cyan-bar { background-color: #06b6d4; }
.white-bar { background-color: #ffffff; }

.h-25 { height: 25%; }
.h-30 { height: 30%; }
.h-40 { height: 40%; }
.h-45 { height: 45%; }
.h-48 { height: 48%; }
.h-55 { height: 55%; }
.h-65 { height: 65%; }
.h-70 { height: 70%; }
.h-75 { height: 75%; }
.h-80 { height: 80%; }
.h-90 { height: 90%; }
.h-95 { height: 95%; }

.bar-group span {
    font-size: 0.65rem;
    color: #94a3b8;
}

/* SUB ROW (HOURLY + DONUT) */
.sub-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.hourly-bars {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 100px;
    margin-top: 10px;
}

.h-bar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    height: 100%;
    justify-content: flex-end;
}

.h-bar {
    width: 8px;
    background-color: #3b82f6;
    border-radius: 2px;
}

.h-bar-wrap span {
    font-size: 0.6rem;
    color: #64748b;
}

.peak-box {
    text-align: right;
    font-size: 0.7rem;
    color: #06b6d4;
}

/* DONUT CHART */
.donut-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}

.donut-chart {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(#a855f7 0% 65%, #ec4899 65% 90%, #06b6d4 90% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.donut-hole {
    width: 50px;
    height: 50px;
    background-color: #0b1329;
    border-radius: 50%;
}

.donut-legend {
    font-size: 0.7rem;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dot-purple { display: inline-block; width: 8px; height: 8px; background: #a855f7; border-radius: 50%; }
.dot-pink { display: inline-block; width: 8px; height: 8px; background: #ec4899; border-radius: 50%; }
.dot-cyan { display: inline-block; width: 8px; height: 8px; background: #06b6d4; border-radius: 50%; }

/* TOP 3 LEITORES */
.top3-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.top3-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #16203a;
    padding: 10px 14px;
    border-radius: 10px;
}

.avatar-user {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.user-details {
    flex: 1;
}

.user-details strong {
    font-size: 0.8rem;
    color: #ffffff;
    display: block;
}

.user-stats {
    font-size: 0.65rem;
    color: #94a3b8;
    display: flex;
    gap: 6px;
}

.trophy-badge {
    font-size: 1.2rem;
}

/* HEATMAP GRID */
.heatmap-table {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hm-header, .hm-row {
    display: grid;
    grid-template-columns: 30px repeat(5, 1fr);
    gap: 4px;
    align-items: center;
}

.hm-header span, .hm-row span {
    font-size: 0.65rem;
    color: #64748b;
    text-align: center;
}

.hm-cell {
    height: 14px;
    border-radius: 2px;
    background-color: #1e293b;
}

.l-0 { background-color: #0f172a; }
.l-1 { background-color: rgba(6, 182, 212, 0.15); }
.l-2 { background-color: rgba(6, 182, 212, 0.35); }
.l-3 { background-color: rgba(6, 182, 212, 0.55); }
.l-4 { background-color: rgba(6, 182, 212, 0.75); }
.l-5 { background-color: #06b6d4; box-shadow: 0 0 6px #06b6d4; }