/* ============================================
   STATS CARDS STYLING
   ============================================ */

.stats-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px !important;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, currentColor, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12) !important;
}

.stats-card:hover::before {
    opacity: 1;
}

.stats-card.stats-card-primary::before {
    background: linear-gradient(90deg, #0d6efd, transparent);
}

.stats-card.stats-card-info::before {
    background: linear-gradient(90deg, #0dcaf0, transparent);
}

.stats-card.stats-card-warning::before {
    background: linear-gradient(90deg, #ffc107, transparent);
}

.stats-card.stats-card-success::before {
    background: linear-gradient(90deg, #198754, transparent);
}

.stats-card.stats-card-danger::before {
    background: linear-gradient(90deg, #dc3545, transparent);
}

.stats-icon {
    width: 70px;
    height: 70px;
    font-size: 32px;
    font-weight: 300;
    transition: all 0.3s ease;
    color: white;
    flex-shrink: 0;
}

.stats-icon-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.stats-icon-info {
    background: linear-gradient(135deg, #0dcaf0 0%, #0aa8cc 100%);
    box-shadow: 0 4px 15px rgba(13, 202, 240, 0.3);
}

.stats-icon-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.stats-icon-success {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3);
}

.stats-icon-danger {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.stats-card:hover .stats-icon {
    transform: scale(1.1) rotate(5deg);
}

.stats-content h2 {
    color: #1a202c;
    font-size: 2.5rem;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stats-content p {
    color: #718096;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem !important;
}

.stats-content small {
    color: #a0aec0;
    font-size: 0.8rem;
    display: block;
}

.card-footer {
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0 !important;
}

.progress {
    background-color: #e2e8f0;
    border-radius: 10px;
}

.progress-bar {
    transition: width 0.6s ease;
    border-radius: 10px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .stats-content h2 {
        font-size: 2rem;
    }
    
    .stats-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .stats-content h2 {
        font-size: 1.75rem;
    }
    
    .stats-icon {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
    
    .stats-card:hover {
        transform: translateY(-4px);
    }
}

/* Animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-card {
    animation: slideUp 0.5s ease-out forwards;
}

.stats-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stats-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stats-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stats-card:nth-child(4) {
    animation-delay: 0.4s;
}
