/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #0a0e1a;
    overflow-x: hidden;
}

/* ===== ANIMATED GRADIENT BACKGROUND ===== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(-45deg, #0a0e1a, #1a1f35, #0f1a2e, #1a0f2e);
    background-size: 400% 400%;
    animation: gradientBG 18s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: -1;
    animation: floatOrb 12s ease-in-out infinite alternate;
}
.orb1 {
    width: 400px;
    height: 400px;
    background: #f97316;
    top: -10%;
    right: -5%;
}
.orb2 {
    width: 350px;
    height: 350px;
    background: #8b5cf6;
    bottom: -10%;
    left: -5%;
    animation-delay: 4s;
}
.orb3 {
    width: 250px;
    height: 250px;
    background: #06b6d4;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 8s;
    opacity: 0.15;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(40px, -30px) scale(1.2);
    }
}

/* ===== MAIN CONTAINER ===== */
.container {
    max-width: 1100px;
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 40px;
    padding: 40px 35px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: fadeUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(249, 115, 22, 0.03), transparent, rgba(139, 92, 246, 0.03), transparent);
    animation: spinGlow 20s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes spinGlow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.container>* {
    position: relative;
    z-index: 1;
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== HEADER ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

header .left h1 {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fbbf24, #f97316, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

header .left p {
    color: #94a3b8;
    font-weight: 400;
    font-size: 0.95rem;
    margin-top: 4px;
    letter-spacing: 0.3px;
}

.badge {
    background: rgba(255, 255, 255, 0.06);
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4ade80;
    display: inline-block;
    animation: pulseDot 1.8s ease-in-out infinite;
}

@keyframes pulseDot {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}

/* ===== CARDS ROW ===== */
.cards {
    display: grid;
    grid-template-columns: 1fr 1.2fr 0.8fr;
    gap: 20px;
    margin-bottom: 35px;
}

@media (max-width: 850px) {
    .cards {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 550px) {
    .cards {
        grid-template-columns: 1fr;
    }
}

.card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 24px 22px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(249, 115, 22, 0.05);
}

.card .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    font-weight: 600;
}

.card .value {
    font-size: 2.8rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 6px 0 2px 0;
    letter-spacing: -0.5px;
}

.card .sub {
    font-size: 0.85rem;
    color: #64748b;
}

/* ===== THERMOMETER CARD ===== */
.thermo-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.thermo-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 6px;
}

.thermo-bar-bg {
    flex: 1;
    height: 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.thermo-fill {
    height: 100%;
    width: 0%;
    border-radius: 20px;
    background: linear-gradient(90deg, #06b6d4, #fbbf24, #f97316, #ef4444);
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
}

.thermo-label {
    font-weight: 700;
    font-size: 1.1rem;
    color: #f1f5f9;
    min-width: 60px;
    text-align: right;
}

/* ===== STATUS CARD ===== */
.status-card .value {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-online {
    color: #4ade80 !important;
}
.status-offline {
    color: #f87171 !important;
}

.status-icon {
    font-size: 1.8rem;
}

/* ===== CHART SECTION ===== */
.chart-section {
    margin-top: 10px;
}

.chart-section .header-chart {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}

.chart-section h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-section h2 span {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 12px;
    border-radius: 30px;
    color: #94a3b8;
    font-weight: 400;
}

.chart-wrapper {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    padding: 20px 20px 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(4px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
    .container {
        padding: 24px 16px;
        border-radius: 28px;
    }
    header .left h1 {
        font-size: 1.6rem;
    }
    .card .value {
        font-size: 2rem;
    }
    .thermo-label {
        font-size: 0.9rem;
        min-width: 45px;
    }
}

@media (max-width: 400px) {
    .card {
        padding: 18px 16px;
    }
    .card .value {
        font-size: 1.6rem;
    }
    .badge {
        font-size: 0.7rem;
        padding: 5px 12px;
    }
}