/*
Template Name: Velzon - Admin & Dashboard Template
Author: Themesbrand
Website: https://themesbrand.com/
Contact: support@themesbrand.com
File: Custom Css File
*/

/* SweetAlert2 — always render above sidebar/header */
.swal2-container {
    z-index: 99999 !important;
}
/* Toast-style: compact, top-end, no backdrop overlay */
.swal2-container.swal2-top-end,
.swal2-container.swal2-top-right {
    top: 16px !important;
    right: 16px !important;
    left: auto !important;
    bottom: auto !important;
    width: auto !important;
    height: auto !important;
    pointer-events: none;
}
.swal2-container.swal2-top-end .swal2-popup,
.swal2-container.swal2-top-right .swal2-popup {
    pointer-events: all;
    max-width: 360px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* ── Global Badge White Text ──────────────────────────────── */
.badge {
    color: #fff !important;
}
/* Keep light-background badges readable */
.badge.bg-light,
.badge.text-dark {
    color: #212529 !important;
}

/* ── Remove non-brand gradients from cards ─────────────────── */
/* Override inline gradient backgrounds defined per-template */
.stats-card {
    background: var(--vz-card-bg, #fff) !important;
    border-left: 4px solid #d1aa66;
    color: inherit !important;
}
.account-info-card {
    background: #0a0e17 !important;
}
.contact-stats {
    background: #0a0e17 !important;
}
.storage-usage {
    background: #d1aa66 !important;
}
.valedictorian-card {
    background: linear-gradient(135deg, #0a0e17 0%, #d1aa66 100%) !important;
    color: #fff !important;
}

/* ── Page Title & Section Spacing ──────────────────────────── */
/* Consistent gap between the page-title-box and first card row */
.page-title-box {
    padding-bottom: 1rem !important;
    margin-bottom: 0 !important;
}

/* First row of cards directly after page title */
.page-title-box + .row {
    margin-top: 1rem !important;
}

/* Uniform vertical rhythm between card rows */
.row.g-3 { margin-bottom: 0; }
.row.g-3 + .row.g-3,
.row.g-4 + .row.g-4 { margin-top: 1.25rem !important; }
.row.g-3 + .row.mt-3,
.row.mt-3 { margin-top: 1.25rem !important; }

/* Card body padding — slightly more breathing room */
.card .card-body { padding: 1.25rem 1.25rem; }
.card .card-header { padding: 0.875rem 1.25rem; }

/* KPI / stat cards: compact header gap */
.kpi-card .card-body,
.res-kpi .card-body {
    padding: 1rem 1.125rem;
}

/* Banner slider: breathing room below + gap before first content row */
.banner-slider-row { margin-bottom: 1.5rem !important; }
.banner-slider-row + .row { margin-top: 0 !important; }

/* Hide back-to-top on chat pages (send button area conflict) */
body[data-page="chat"] #back-to-top { display: none !important; }

/* Back-to-top: small, subtle, non-intrusive */
#back-to-top {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    font-size: 0.8rem !important;
    opacity: 0.45;
    transition: opacity 0.2s ease;
    bottom: 18px !important;
    right: 14px !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12) !important;
    padding: 0 !important;
    line-height: 30px !important;
    border-radius: 50% !important;
}
#back-to-top:hover { opacity: 0.9; background-color: #495057 !important; border-color: #495057 !important; }

/* UGC Spinner Component */
.ugc-spin-wrap { position: relative; min-height: 80px; }
.ugc-spinner-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.75); z-index: 10;
    border-radius: inherit;
}
.ugc-spinner-ring {
    width: 36px; height: 36px;
    border: 3px solid #f0f0f0;
    border-top-color: #d1aa66;
    border-radius: 50%;
    animation: ugc-spin 0.7s linear infinite;
}
.ugc-spinner-ring.ugc-spinner-sm { width: 22px; height: 22px; border-width: 2px; }
.ugc-spinner-ring.ugc-spinner-lg { width: 52px; height: 52px; border-width: 4px; }
@keyframes ugc-spin { to { transform: rotate(360deg); } }

/* Skeleton loader */
.ugc-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: ugc-shimmer 1.4s infinite;
    border-radius: 4px;
}
@keyframes ugc-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

@media (max-width: 768px) {
    .banner-slider-row { margin-bottom: 1rem !important; }
    .page-title-box { padding-bottom: 0.75rem !important; }
    .page-title-box + .row { margin-top: 0.75rem !important; }
}

/* ── UGC Global Button Overrides ──────────────────────────────── */
/* Primary action buttons → UGC gold */
.btn-primary {
    background-color: #d1aa66 !important;
    border-color: #d1aa66 !important;
    color: #fff !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #b8913f !important;
    border-color: #b8913f !important;
    color: #fff !important;
}
/* btn-gradient (used across several dashboard templates) */
.btn-gradient {
    background: #d1aa66 !important;
    border: none !important;
    color: #fff !important;
}
.btn-gradient:hover, .btn-gradient:focus {
    background: #b8913f !important;
    color: #fff !important;
}
/* btn-soft-primary → light gold tint */
.btn-soft-primary {
    background-color: rgba(209,170,102,.15) !important;
    border-color: transparent !important;
    color: #b8913f !important;
}
.btn-soft-primary:hover {
    background-color: #d1aa66 !important;
    color: #fff !important;
}