/* ------- Dashboard Premium Style ------- */

.dashboard-wrapper {
    padding-top: 10px;
    padding-bottom: 20px;
}

/* Base card style */
.dash-card {
    position: relative;
    border-radius: 14px;
    padding: 14px 16px;
    color: #111827;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    overflow: hidden;
    min-height: 90px;
}

.dash-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    border-color: rgba(59, 130, 246, 0.7);
}

.dash-card-label {
    font-size: 0.80rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 4px;
}

.dash-card-value {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
}

.dash-card-subtext {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 3px;
}

/* Color variants (background gradients) */
.dash-card-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border: none;
}
.dash-card-primary .dash-card-label,
.dash-card-primary .dash-card-subtext {
    color: rgba(241, 245, 249, 0.8);
}

.dash-card-indigo {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    color: #ffffff;
    border: none;
}
.dash-card-indigo .dash-card-label,
.dash-card-indigo .dash-card-subtext {
    color: rgba(226, 232, 240, 0.85);
}

.dash-card-green {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    border: none;
}
.dash-card-green .dash-card-label,
.dash-card-green .dash-card-subtext {
    color: rgba(240, 253, 244, 0.85);
}

.dash-card-red {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #ffffff;
    border: none;
}
.dash-card-red .dash-card-label,
.dash-card-red .dash-card-subtext {
    color: rgba(255, 241, 242, 0.9);
}

.dash-card-teal {
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    color: #ffffff;
    border: none;
}
.dash-card-teal .dash-card-label,
.dash-card-teal .dash-card-subtext {
    color: rgba(240, 253, 250, 0.9);
}

.dash-card-orange {
    background: linear-gradient(135deg, #fb923c, #f97316);
    color: #ffffff;
    border: none;
}
.dash-card-orange .dash-card-label,
.dash-card-orange .dash-card-subtext {
    color: rgba(255, 247, 237, 0.9);
}

/* Soft cards (white background) */
.dash-card-soft {
    background: #f9fafb;
}

/* Outline-style cards (for monthly summary) */
.dash-card-outline {
    border: 1px solid rgba(148, 163, 184, 0.8);
    background: #ffffff;
}
.dash-card-outline.cyan {
    border-color: rgba(59, 130, 246, 0.5);
}
.dash-card-outline.amber {
    border-color: rgba(245, 158, 11, 0.6);
}
.dash-card-outline.blue {
    border-color: rgba(37, 99, 235, 0.7);
}
.dash-card-outline.green {
    border-color: rgba(34, 197, 94, 0.7);
}

/* Panel (for charts) */
.dash-panel {
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.dash-panel-header {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dash-panel-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
}

.dash-panel-body {
    padding: 12px 16px 18px 16px;
}

/* Small tweaks */
.text-primary {
    color: #2563eb !important;
}
.text-success {
    color: #16a34a !important;
}
.text-danger {
    color: #dc2626 !important;
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
    .dash-card {
        padding: 12px 12px;
        margin-bottom: 6px;
    }
    .dash-card-value {
        font-size: 1.25rem;
    }
    .dashboard-wrapper {
        padding-top: 5px;
    }
}
