/* Dashboard Cards */
.dashboard-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e8ed;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    user-select: none;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

.dashboard-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 12px 20px;
    border-bottom: 1px solid #f0f3f5;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px 12px 0 0;
}

.card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.2;
}

.card-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #219fac 0%, #1a7f89 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(33, 159, 172, 0.25);
}

.card-toggle-btn:hover {
    background: linear-gradient(135deg, #f9b140 0%, #e09a2b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 177, 64, 0.3);
}

.card-toggle-btn.btn-graph svg {
    stroke: #fff;
}

.card-toggle-btn.btn-table svg {
    stroke: #fff;
}

.card-description {
    font-size: 14px;
    padding: 12px 20px 0 20px;
    color: #6c757d;
    line-height: 1.4;
    font-style: italic;
}

.card-content {
    flex: 1;
    padding: 16px 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    transition: all 0.3s ease;
    min-height: 0;
}

/* Card fade animation for mode changes */
.dashboard-card.changing-mode {
    animation: cardFade 0.4s ease-in-out;
}

@keyframes cardFade {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.card-footer {
    padding: 12px 20px;
    border-top: 1px solid #f0f3f5;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.card-footer small {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

/* Graph Placeholder */
.graph-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, rgba(33, 159, 172, 0.05) 0%, rgba(249, 177, 64, 0.03) 100%);
    border-radius: 8px;
    border: 2px dashed rgba(33, 159, 172, 0.2);
    text-align: center;
    color: #6c757d;
    animation: graphPlaceholderPulse 3s ease-in-out infinite;
}

.graph-icon {
    margin-bottom: 16px;
    opacity: 0.7;
    color: #219fac;
    animation: graphIconFloat 2s ease-in-out infinite;
}

.graph-placeholder p {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.graph-placeholder small {
    font-size: 14px;
    opacity: 0.8;
    color: #6c757d;
    font-style: italic;
}

@keyframes graphPlaceholderPulse {
    0%, 100% {
        border-color: rgba(33, 159, 172, 0.2);
        background: linear-gradient(135deg, rgba(33, 159, 172, 0.05) 0%, rgba(249, 177, 64, 0.03) 100%);
    }
    50% {
        border-color: rgba(249, 177, 64, 0.3);
        background: linear-gradient(135deg, rgba(249, 177, 64, 0.08) 0%, rgba(33, 159, 172, 0.05) 100%);
    }
}

@keyframes graphIconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}
/* components.css: buttons, inputs, spinners, error messages, etc. */
