/* ============================================================
   GLOBAL BASE
============================================================ */
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: 'Roboto', sans-serif; }

/* ============================================================
   BACKGROUND TOKENS
============================================================ */
.bg-saas-light    { background: #F1F5F9 !important; }
.bg-container     { background: #F8FAFC !important; }
.bg-container-dark { background: #0f172a !important; }
.bg-module-dark   { background: #1e293b !important; }

/* ============================================================
   SAAS CARD  (base for all content cards)
============================================================ */
.saas-card {
    border: 1px solid #e2e8f0 !important;
    transition: box-shadow .18s ease, transform .18s ease !important;
}
.theme--dark .saas-card {
    border-color: rgba(255, 255, 255, 0.07) !important;
    background: #1e293b !important;
}

/* ============================================================
   SIDEBAR NAV ITEMS
============================================================ */
.saas-nav-item {
    transition: background .12s ease !important;
}
.saas-nav-item:hover {
    background: rgba(25, 118, 210, 0.07) !important;
}
.theme--dark .saas-nav-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}
.saas-nav-item--active {
    background: rgba(25, 118, 210, 0.1) !important;
}
.theme--dark .saas-nav-item--active {
    background: rgba(59, 130, 246, 0.12) !important;
}

/* ============================================================
   QUICK ACTION ITEMS
============================================================ */
.saas-action-item {
    transition: background .12s ease !important;
}
.saas-action-item:hover {
    background: rgba(25, 118, 210, 0.06) !important;
}
.theme--dark .saas-action-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

/* ============================================================
   DATA TABLES
============================================================ */
.v-data-table.saas-table > .v-data-table__wrapper > table > tbody > tr:hover {
    background: rgba(25, 118, 210, 0.04) !important;
}
.theme--dark .v-data-table.saas-table > .v-data-table__wrapper > table > tbody > tr:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}
.v-data-table thead tr th {
    white-space: nowrap;
    font-size: 0.72rem !important;
    letter-spacing: 0.8px;
}

/* ============================================================
   VUETIFY OVERRIDES
============================================================ */
.v-text-field--outlined .v-input__control .v-input__slot {
    border-radius: 8px !important;
}
.v-btn {
    letter-spacing: 0.2px !important;
}
.v-card {
    border-radius: 12px !important;
}
.v-chip {
    font-size: 0.75rem !important;
}

/* ============================================================
   SCROLLBAR (Webkit)
============================================================ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
.theme--dark ::-webkit-scrollbar-thumb { background: #334155; }

/* ============================================================
   SWEETALERT THEME
============================================================ */
.swal-dark  { background: #1e293b !important; color: #e2e8f0 !important; border-radius: 14px !important; }
.swal-light { background: #ffffff !important; color: #1f2937 !important; border-radius: 14px !important; }

.swal-title      { font-weight: 700 !important; color: #1f2937 !important; }
.swal-title-dark { font-weight: 700 !important; color: #f1f5f9 !important; }

.swal-dark .swal2-html-container { color: #94a3b8 !important; }

.swal2-confirm:not(.swal2-loading) {
    background: linear-gradient(135deg, #1565C0, #1976D2) !important;
    color: white !important;
    border-radius: 8px !important;
    padding: 8px 20px !important;
}
.swal-cancel {
    background: #64748b !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 20px !important;
}
.swal-cancel:hover { background: #475569 !important; }

.swal-confirm-permanent {
    background: linear-gradient(135deg, #1565C0, #1976D2) !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}

/* ============================================================
   MISC UTILITIES
============================================================ */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }
input[type=number] { -moz-appearance: textfield; }

.no-uppercase { text-transform: none !important; }
.compact-list .v-list-item { min-height: 28px !important; }
