/* ===== Statistiken Page - Mit Brand Color #0096ff ===== */

/* Chart Container */
.chart-box {
    position: relative;
    height: 320px;
    width: 100%;
}

.chart-box > canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 991.98px) {
    .chart-box {
        height: 240px;
    }
}

/* KPI Cards Enhancement */
.kpi-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #0096ff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 150, 255, 0.15);
}

.kpi-card:hover::before {
    opacity: 1;
}

.kpi-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 1rem;
}

.kpi-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.kpi-card-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.kpi-card-subtitle {
    font-size: 0.875rem;
    color: #9aa0a6;
}

/* Highlight Cards (Top Row) - Mit Brand Color */
.kpi-highlight {
    background: linear-gradient(135deg, #0096ff 0%, #0077cc 100%);
    color: white;
    border: none;
}

.kpi-highlight .kpi-card-title {
    color: rgba(255, 255, 255, 0.9);
}

.kpi-highlight .kpi-card-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.kpi-highlight-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.kpi-highlight-info {
    background: linear-gradient(135deg, #0096ff 0%, #00d4ff 100%);
}

/* Chart Cards */
.chart-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.chart-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-card-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: #0096ff;
    border-radius: 2px;
}

/* Status Badge Colors - Brand Color Integration */
.status-fresh { color: #0096ff; }
.status-hold { color: #f6b93b; }
.status-contacted { color: #38ef7d; }
.status-canceled { color: #ef4444; }

/* Grid Improvements */
.stats-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .stats-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Section Spacing */
.stats-section {
    margin-bottom: 3rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* Loading State */
.chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    color: #9aa0a6;
    font-size: 0.875rem;
}

/* Responsive Improvements */
@media (max-width: 767.98px) {
    .kpi-card {
        padding: 1.5rem;
    }
    
    .kpi-card-value {
        font-size: 2rem;
    }
    
    .chart-card {
        padding: 1.5rem;
    }
}