/* This file is reserved for overriding and extending the template styles. */

/* === Bansos Primary Color Override: Blue === */
html,
html[data-color],
html[data-color="light-blue"] {
    --primary: #2563eb;
    --primary-rgb: 37, 99, 235;
    --primary-darker: #1d4ed8;
}

.bg-primary,
.btn-primary {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
    background-color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}
.text-primary { color: #2563eb !important; }
.border-primary { border-color: #2563eb !important; }
.btn-outline-primary {
    color: #2563eb;
    border-color: #2563eb;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:not(:disabled):not(.disabled).active {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}
.alert-primary {
    background-color: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.25);
    color: #1d4ed8;
}
.badge.bg-primary { background-color: #2563eb !important; }
.form-check-input:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}
.page-item.active .page-link {
    background-color: #2563eb;
    border-color: #2563eb;
}
.page-link { color: #1d4ed8; }
.page-link:hover { color: #1e40af; }

/* === Bansos Stat Cards (Home dashboards) === */
.stat-card {
    border-radius: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18) !important;
}
.stat-card .card-body { color: #ffffff !important; }
.stat-card-label {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.3;
}
.stat-card-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    backdrop-filter: blur(4px);
}
.stat-card-icon i { color: #ffffff; }
.stat-card-value {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    letter-spacing: -0.01em;
}
.stat-card-deco {
    position: absolute;
    right: -10px;
    bottom: -18px;
    font-size: 6rem;
    line-height: 1;
    opacity: 0.12;
    pointer-events: none;
}
.stat-card-deco i { color: #ffffff; width: 96px; height: 96px; }
.stat-card-blue   { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%); }
.stat-card-emerald{ background: linear-gradient(135deg, #34d399 0%, #10b981 55%, #059669 100%); }
.stat-card-amber  { background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%); }
.stat-card-rose   { background: linear-gradient(135deg, #fb7185 0%, #f43f5e 55%, #e11d48 100%); }
.stat-card-violet { background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 55%, #6d28d9 100%); }
.stat-card-cyan   { background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 55%, #0891b2 100%); }
.stat-card-slate  { background: linear-gradient(135deg, #64748b 0%, #475569 55%, #334155 100%); }

/* === Bansos Chart Cards === */
.chart-card {
    border-radius: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: #ffffff;
}
.chart-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12) !important;
}
.chart-card-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.15rem 1.4rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}
.chart-card-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 90% 20%, rgba(255,255,255,0.22) 0, transparent 45%),
        radial-gradient(circle at 10% 80%, rgba(255,255,255,0.12) 0, transparent 50%);
    pointer-events: none;
}
.chart-card-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    backdrop-filter: blur(4px);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}
.chart-card-icon i { color: #ffffff; }
.chart-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}
.chart-card-sub {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 2px;
    position: relative;
    z-index: 1;
}
.chart-card-body {
    padding: 1.25rem 1.4rem 1.5rem;
    background: #ffffff;
}
.chart-card-violet .chart-card-header { background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 55%, #6d28d9 100%); }
.chart-card-amber  .chart-card-header { background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%); }
.chart-card-blue   .chart-card-header { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%); }
.chart-card-emerald.chart-card-header,
.chart-card-emerald .chart-card-header { background: linear-gradient(135deg, #34d399 0%, #10b981 55%, #059669 100%); }

.select2-container--bootstrap4 .select2-results__group {
    color: #3f8be1;
    font-weight: bold;
    padding: 6px 12px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    margin-top: 4px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* Optional: Style the options within a group to be indented */
.select2-container--bootstrap4 .select2-results__option .select2-results__option {
    padding-left: 18px;
}
