@keyframes pulse-critical {
    0% {
        background-color: rgba(220, 53, 69, 0.1);
    }
    50% {
        background-color: rgba(220, 53, 69, 0.25);
    }
    100% {
        background-color: rgba(220, 53, 69, 0.1);
    }
}

.pulse-critical {
    animation: pulse-critical 2s infinite;
}

/* Expanded mode styles */
.card-expanded {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1050;
    background-color: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(5px);
    margin: 0 !important;
    border-radius: 0 !important;
    animation: none !important; /* Stop pulsing when expanded */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-expanded .card-body {
    padding: 1rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-expanded .card-header {
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

/* Charts container for expanded mode */
.charts-container {
    display: none;
}

.card-expanded .charts-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-top: 1rem;
    overflow: hidden;
}

.chart-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chart-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
    flex-shrink: 0;
}

.chart-content {
    flex: 1;
    overflow: hidden;
}
