/**
 * GLOBAL STATS CARDS COMPONENT
 * Reusable stat card styling for all pages
 * Include in base.html or page-specific templates as needed
 */

/* ===== STATS CARDS STYLING ===== */
.stats-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
    height: 100%;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.stats-card-body {
    padding: 1.5rem;
}

.stats-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.stats-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stats-footer {
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* Dark mode stats cards */
[data-bs-theme="dark"] .stats-card {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-color: #4a5568;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

[data-bs-theme="dark"] .stats-card:hover {
    border-color: #63b3ed;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

[data-bs-theme="dark"] .stats-label {
    color: #a0aec0;
}

[data-bs-theme="dark"] .stats-footer {
    border-top-color: rgba(255,255,255,0.1);
}

/* Stats card icon background colors */
.stats-icon.bg-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.stats-icon.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.stats-icon.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
}

.stats-icon.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #d39e00 100%);
}

.stats-icon.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #bd2130 100%);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .stats-card {
        margin-bottom: 1rem;
    }
    
    .stats-number {
        font-size: 1.5rem;
    }
    
    .stats-label {
        font-size: 0.75rem;
    }
    
    .stats-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}


/* ===== STAT-ITEM COMPONENT (Dashboard Widgets) ===== */
/* Simple stat display for dashboard widgets and summaries */
.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(var(--bs-body-bg-rgb, 255, 255, 255), 0.8);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bs-secondary-color, #6c757d);
    font-weight: 600;
}

/* Dark mode stat-item */
[data-bs-theme="dark"] .stat-item {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

[data-bs-theme="dark"] .stat-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .stat-label {
    color: var(--bs-secondary-color, #a0aec0);
}

/* Mobile responsiveness for stat-item */
@media (max-width: 768px) {
    .stat-item {
        padding: 0.75rem 0.5rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .stat-icon i.fa-2x {
        font-size: 1.5em;
    }
}

