/* ============================================================
   GLOBAL CARD COMPONENT
   ============================================================ */
.card {
    background: var(--bg-card, #ffffff);
    border-radius: var(--radius, 16px);
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.06));
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition, all 0.3s cubic-bezier(0.4, 0, 0.2, 1));
}

.card:hover {
    box-shadow: var(--shadow-md, 0 4px 20px rgba(0, 0, 0, 0.08));
}

.card-header {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.card-header .card-action {
    font-size: 13px;
    color: var(--primary, #0f3b5e);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition, all 0.3s cubic-bezier(0.4, 0, 0.2, 1));
    text-decoration: none;
}

.card-header .card-action:hover {
    color: var(--secondary, #e67e22);
}

.card-body {
    padding: 20px 24px;
}

/* Custom Content Card (No body split, custom padding) */
.card.content-card {
    padding: 24px;
}

@media (max-width: 768px) {
    .card-header {
        padding: 14px 16px;
    }

    .card-body {
        padding: 14px 16px;
    }

    .card.content-card {
        padding: 18px;
    }
}


/* ============================================================
   GLOBAL STAT CARD COMPONENTS
   ============================================================ */

/* 1. Large Stat Card (Dashboard) */
.stat-card {
    background: var(--bg-card, #ffffff);
    border-radius: var(--radius, 16px);
    padding: 22px 24px;
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.06));
    transition: var(--transition, all 0.3s cubic-bezier(0.4, 0, 0.2, 1));
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md, 0 4px 20px rgba(0, 0, 0, 0.08));
}

.stat-card .stat-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-sm, 10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-card .stat-info {
    flex: 1;
}

.stat-card .stat-info .stat-value {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.stat-card .stat-info .stat-label {
    font-size: 13px;
    color: var(--text-muted, #8a8aaa);
    font-weight: 500;
}


/* 2. Mini Stat Card (Index Pages) */
.stat-card-mini {
    background: var(--bg-card, #ffffff);
    border-radius: var(--radius-sm, 10px);
    padding: 16px 20px;
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.06));
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition, all 0.3s cubic-bezier(0.4, 0, 0.2, 1));
}

.stat-card-mini:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md, 0 4px 20px rgba(0, 0, 0, 0.08));
}

.stat-card-mini .stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.stat-card-mini .stat-info {
    display: flex;
    flex-direction: column;
}

.stat-card-mini .stat-info .stat-value {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.stat-card-mini .stat-info .stat-label {
    font-size: 12px;
    color: var(--text-muted, #8a8aaa);
    font-weight: 500;
}

@media (max-width: 768px) {
    .stat-card-mini {
        padding: 12px 16px;
    }
    
    .stat-card-mini .stat-info .stat-value {
        font-size: 18px;
    }
}


/* ============================================================
   COLOR UTILITIES FOR STAT ICONS
   ============================================================ */
.stat-icon.icon-blue {
    background: rgba(52, 152, 219, 0.12);
    color: var(--info, #3498db);
}
.stat-icon.icon-green {
    background: rgba(39, 174, 96, 0.12);
    color: var(--success, #27ae60);
}
.stat-icon.icon-orange {
    background: rgba(230, 126, 34, 0.12);
    color: var(--secondary, #e67e22);
}
.stat-icon.icon-red {
    background: rgba(231, 76, 60, 0.12);
    color: var(--danger, #e74c3c);
}
.stat-icon.icon-purple {
    background: rgba(142, 68, 173, 0.12);
    color: var(--purple, #8e44ad);
}
.stat-icon.icon-yellow {
    background: rgba(241, 196, 15, 0.12);
    color: #b7950b;
}

/* ============================================================
   GLOBAL BUTTON OUTLINE & BACK BUTTON HOVER EFFECTS
   ============================================================ */
.btn-outline,
.btn-back-header {
    background: var(--bg-card, #ffffff);
    color: var(--text-secondary, #475569);
    border: 1px solid #cbd5e1;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-back-header {
    height: 38px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .btn-back-header {
        width: auto;
    }
}

.btn-outline:hover,
.btn-back-header:hover {
    background: var(--primary, #0f3b5e) !important;
    color: #ffffff !important;
    border-color: var(--primary, #0f3b5e) !important;
    box-shadow: 0 4px 12px rgba(15, 59, 94, 0.2) !important;
    transform: translateY(-1px);
}

.btn-outline:hover i,
.btn-back-header:hover i {
    color: #ffffff !important;
    transform: translateX(-2px);
    transition: transform 0.2s ease;
}
