/* Lobotomy Alert (AI Vitals) - High Fidelity Version */
.vitals-container {
    max-width: 1200px;
    margin: 1rempx auto;
    padding: 0 16px;
}

.vitals-box {
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.vitals-box::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.1), transparent 400px);
    pointer-events: none;
}

.vitals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 16px;
}

.vitals-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 15px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    animation: scan 4s linear infinite;
    z-index: 10;
}

@keyframes scan {
    from {
        top: 0;
    }

    to {
        top: 100%;
    }
}

.vitals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.vitals-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}


.vitals-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.model-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}

.status-badge {
    font-size: 0.65rem;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vitals-monitor {
    width: 100%;
    height: 60px;
    background: #020617;
    border-radius: 8px;
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pulse-line {
    position: absolute;
    top: 50%;
    width: 100%;
    height: 2px;
    opacity: 0.8;
}

/* Specific Status Styles */
.status-stable .pulse-line {
    background: #10b981;
    box-shadow: 0 0 15px #10b981;
    animation: heart-pulse 2s infinite ease-in-out;
}

.status-stable .status-badge {
    background: #10b981;
    color: #064e3b;
}

.status-monitoring .pulse-line {
    background: #f59e0b;
    box-shadow: 0 0 15px #f59e0b;
    animation: monitor-flicker 1.5s infinite;
}

.status-monitoring .status-badge {
    background: #f59e0b;
    color: #451a03;
}

.status-nerfed .pulse-line {
    background: #ef4444;
    box-shadow: 0 0 20px #ef4444;
    animation: alert-shake 0.2s infinite;
}

.status-nerfed .status-badge {
    background: #ef4444;
    color: #fff;
    animation: blink 0.5s infinite;
}

@keyframes heart-pulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scaleY(1);
    }

    50% {
        opacity: 1;
        transform: scaleY(3);
    }
}

@keyframes monitor-flicker {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.9;
    }
}

@keyframes alert-shake {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(1px, -1px);
    }

    50% {
        transform: translate(-1px, 1px);
    }

    75% {
        transform: translate(1px, 1px);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.vitals-stats {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.vitals-value {
    font-size: 2.2rem;
    font-weight: 900;
    color: #f8fafc;
    font-family: 'Inter', sans-serif;
}

.vitals-delta {
    font-size: 0.85rem;
    font-weight: 700;
}

.delta-plus {
    color: #10b981;
}

.delta-minus {
    color: #ef4444;
}

.vitals-commentary {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
/* Freshness & Perishability Styles */
.vitals-freshness {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.freshness-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.best-before {
    color: #64748b;
    font-weight: 600;
}

.status-nerfed .best-before {
    color: #fca5a5;
}

.freshness-bar-container {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.freshness-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-nerfed .freshness-bar {
    background: linear-gradient(90deg, #ef4444, #f87171);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

.status-monitoring .freshness-bar {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

