/* ===== Statistik Dashboard Styles ===== */
.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Card Variants (Using Bootstrap Colors to match Chart) */
/* Blue (#0d6efd) */
.stat-card.blue {
    border-left: 4px solid #0d6efd;
}

.stat-card.blue .icon-box {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.stat-card.blue .btn-stat-detail {
    background-color: #f0f7ff;
    /* light blue tint */
    color: #0d6efd;
}

.stat-card.blue .btn-stat-detail:hover {
    background-color: #e0efff;
}

/* Yellow (#ffc107) */
.stat-card.yellow {
    border-left: 4px solid #ffc107;
}

.stat-card.yellow .icon-box {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.stat-card.yellow .btn-stat-detail {
    background-color: #fffdf0;
    color: #d8a400;
    /* slightly darker for text contrast */
}

.stat-card.yellow .btn-stat-detail:hover {
    background-color: #fff8d6;
}

/* Red (#dc3545) */
.stat-card.red {
    border-left: 4px solid #dc3545;
}

.stat-card.red .icon-box {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.stat-card.red .btn-stat-detail {
    background-color: #fef2f3;
    color: #dc3545;
}

.stat-card.red .btn-stat-detail:hover {
    background-color: #fde2e4;
}

/* Content Layout */
.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.stat-desc {
    font-size: 0.85rem;
    color: #94a3b8;
}

.stat-action {
    margin-top: 1.5rem;
}

.btn-stat-detail {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    font-size: 0.9rem;
}

/* Chart Section */
.chart-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.chart-title h5 {
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    font-size: 1.25rem;
}

.chart-title p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
    margin-top: 0.25rem;
}