/* Dashboard grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Responsive: 1 card per row on smaller screens */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr; 
    }
}

/* Card base */
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
}

/* Header */
.card-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #677486;
    text-transform: uppercase;
    text-align: left;
}
.card-header hr {
    margin: 8px 0 12px;
    border: 0;
    border-top: 1px solid #eee;
}

/* Body */
.card-body p {
    margin: 6px 0;
    font-size: 14px;
    color: #444;
    text-align: left;
}
.card-body strong {
    color: #222;
}

/* Footer */
.card-footer {
    text-align: right;
}
.detail-link {
    font-size: 13px;
    color: #0073e6;
    font-weight: 500;
    text-decoration: none;
}
.detail-link:hover {
    text-decoration: underline;
}

/* Badges */
.badge {
    display: inline-block;
    /* padding: 4px 10px; */
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}
.badge.success {
    background: #d4edda;
    color: #155724;
}
.badge.error {
    background: #f8d7da;
    color: #721c24;
}
.badge.warning {
    background: #fff3cd;
    color: #856404;
}

/* Skeleton */
.skeleton {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    min-height: 140px;
}
.skeleton-header, .skeleton-line {
    background: #e0e0e0;
    height: 16px;
    margin-bottom: 10px;
    border-radius: 4px;
}
.skeleton-header { width: 50%; height: 22px; }
.skeleton-line { width: 80%; }


.status-message {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
}