/* ============================================================
   Login Page
   ============================================================ */
.login-bg {
    min-height: 100vh;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image:
        radial-gradient(ellipse 80% 60% at 20% 40%, hsla(25,100%,50%,0.06), transparent),
        radial-gradient(ellipse 60% 50% at 80% 70%, hsla(222,80%,40%,0.08), transparent);
}

.login-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.5s var(--ease);
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent), hsl(30,100%,50%));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px var(--accent-glow);
}

.login-title {
    font-size: var(--text-2xl);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.login-title span { color: var(--accent); }

.login-subtitle {
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin-top: 6px;
}

.login-error {
    background: hsla(0,84%,60%,0.1);
    border: 1px solid hsla(0,84%,60%,0.25);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: var(--text-sm);
    color: var(--status-danger);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================
   Dashboard
   ============================================================ */
.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--status-active);
}

.live-dot {
    width: 8px; height: 8px;
    background: var(--status-active);
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}

.quick-start-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: flex-end;
}

.quick-start-panel h3 {
    grid-column: 1 / -1;
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 640px) {
    .quick-start-panel { grid-template-columns: 1fr; }
}

/* ============================================================
   Devices page
   ============================================================ */
.device-location {
    font-size: var(--text-xs);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================================
   Reports page
   ============================================================ */
.utilization-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.utilization-bar-row:last-child { border-bottom: none; }

.utilization-label { width: 140px; font-size: var(--text-sm); font-weight: 500; flex-shrink: 0; }
.utilization-bar-wrap { flex: 1; }
.utilization-bar-track { height: 8px; background: var(--bg-surface); border-radius: var(--radius-full); }
.utilization-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--accent), hsl(30,100%,55%));
    transition: width 0.8s var(--ease);
}
.utilization-pct {
    width: 44px;
    text-align: right;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--accent);
    flex-shrink: 0;
}

/* Heatmap */
.heatmap-grid {
    overflow-x: auto;
}

.heatmap-labels-top {
    display: flex;
    margin-left: 64px;
}
.heatmap-hour-label {
    flex: 1;
    min-width: 28px;
    text-align: center;
    font-size: 10px;
    color: var(--text-muted);
    padding-bottom: 4px;
}

.heatmap-row {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 3px;
}
.heatmap-day-label {
    width: 60px;
    font-size: 11px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.heatmap-cell {
    flex: 1;
    min-width: 28px;
    height: 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform var(--dur-fast) var(--ease);
}
.heatmap-cell:hover { transform: scale(1.3); z-index: 10; position: relative; }

.heatmap-cell.heat-0 { background: var(--bg-tertiary); }
.heatmap-cell.heat-1 { background: hsla(142,71%,45%,0.25); }
.heatmap-cell.heat-2 { background: hsla(142,71%,45%,0.5); }
.heatmap-cell.heat-3 { background: hsla(38,92%,50%,0.5); }
.heatmap-cell.heat-4 { background: hsla(0,84%,60%,0.6); }
.heatmap-cell.heat-5 { background: hsla(0,84%,60%,0.85); }
