/* ============================================================
   BORISTECH AI — STYLE.CSS GLOBAL (ORB NEÓN)
   ============================================================ */

/* ---------- VARIABLES GLOBALES ---------- */
:root {
    --orb-bg: #030712;
    --orb-bg-alt: #0f172a;
    --orb-card: rgba(15,23,42,0.8);
    --orb-card-glass: rgba(15,23,42,0.55);
    --orb-border: rgba(148,163,184,0.22);

    --orb-blue: #38bdf8;
    --orb-blue-light: #7dd3fc;
    --orb-purple: #8b5cf6;
    --orb-red: #ef4444;
    --orb-green: #22c55e;
    --orb-yellow: #facc15;

    --text-primary: #e5e7eb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
}

/* ---------- RESET GENERAL ---------- */
body {
    background: var(--orb-bg);
    color: var(--text-primary);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
}

/* Scrollbar global */
html:not(.bt-lightbox-open) ::-webkit-scrollbar {
    width: 8px;
}
html:not(.bt-lightbox-open) ::-webkit-scrollbar-thumb {
    background: rgba(59,130,246,0.35);
    border-radius: 99px;
}
html:not(.bt-lightbox-open) ::-webkit-scrollbar-thumb:hover {
    background: rgba(59,130,246,0.55);
}

/* En el lightbox → scrollbars nativos (sin barra azul rota) */
.bt-lightbox ::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
}

/* ============================================================
   TARJETAS (bt-card)
   ============================================================ */

.bt-card {
    background: var(--orb-card);
    border: 1px solid var(--orb-border);
    border-radius: 14px;
    padding: 20px;
    color: var(--text-primary);
    box-shadow: 0 0 30px rgba(56,189,248,0.08);
}

.bs-card-glass {
    background: var(--orb-card-glass);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(56,189,248,0.18);
}

/* Título interno de tarjeta */
.bt-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--orb-blue-light);
    margin-bottom: 12px;
}

/* ============================================================
   KPI CARDS — RESUMEN PRINCIPAL
   ============================================================ */

.bs-kpi-card {
    padding: 18px 18px 20px;
    border-radius: 16px;
    border: 1px solid var(--orb-border);
    background: linear-gradient(135deg, rgba(56,189,248,0.12), rgba(15,23,42,0.82));
    position: relative;
    overflow: hidden;
}

.bs-kpi-card::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(56,189,248,0.35), transparent);
    filter: blur(40px);
    border-radius: 50%;
    z-index: 0;
}

.bs-kpi-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-secondary);
}

.bs-kpi-value {
    font-size: 32px;
    font-weight: 700;
    margin: 4px 0;
}

.bs-kpi-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.bs-kpi-footer {
    margin-top: 12px;
    color: var(--text-secondary);
}

.bs-kpi-line {
    margin-top: 10px;
    height: 1px;
    width: 100%;
    background: rgba(56,189,248,0.25);
}

/* Colores especiales */
.bs-kpi-blue::before   { background: rgba(56,189,248,0.45); }
.bs-kpi-green::before  { background: rgba(34,197,94,0.45); }
.bs-kpi-yellow::before { background: rgba(250,204,21,0.45); }
.bs-kpi-red::before    { background: rgba(239,68,68,0.45); }

/* ============================================================
   TABLAS
   ============================================================ */

.table-dark {
    --bs-table-bg: rgba(15,23,42,0.75);
    --bs-table-border-color: rgba(56,189,248,0.15);
    color: var(--text-primary);
}

.bs-table-compact td,
.bs-table-compact th {
    padding: 6px 10px !important;
}

/* Scroll interno para tablas */
.bs-events-scroll {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 4px;
}

/* ============================================================
   FORMULARIOS · INPUTS ORB NEÓN
   ============================================================ */

/* Inputs / selects / textareas globales (Bootstrap friendly) */
.form-control,
.form-select,
textarea.form-control {
    background: radial-gradient(circle at 0 0, rgba(56,189,248,0.12), transparent 55%),
                rgba(15,23,42,0.95);
    border: 1px solid rgba(148,163,184,0.4);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 0.45rem 0.75rem;
    font-size: 0.95rem;
    box-shadow: inset 0 0 0 1px rgba(15,23,42,0.95);
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease,
        transform 0.08s ease;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    background: radial-gradient(circle at 0 0, rgba(56,189,248,0.16), transparent 60%),
                rgba(15,23,42,0.99);
    border-color: rgba(56,189,248,0.75);
    box-shadow:
        0 0 0 1px rgba(56,189,248,0.7),
        0 0 18px rgba(56,189,248,0.65);
    outline: none;
    transform: translateY(-1px);
    color: var(--text-primary);
}

/* Placeholders suaves */
.form-control::placeholder,
textarea.form-control::placeholder {
    color: rgba(148,163,184,0.7);
}

/* Disabled / readonly */
.form-control:disabled,
.form-control[readonly],
.form-select:disabled {
    background: rgba(15,23,42,0.75);
    border-color: rgba(75,85,99,0.7);
    color: rgba(156,163,175,0.8);
    box-shadow: none;
    opacity: 0.9;
}

/* Inputs pequeños Bootstrap */
.form-control-sm {
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.85rem;
}

/* Label de formularios */
.form-label {
    color: var(--text-secondary);
    font-size: 0.84rem;
}

/* Mensajes de ayuda */
.form-text,
.small.text-muted {
    color: var(--text-muted) !important;
}

/* File input (Bootstrap 5) */
.form-control[type="file"] {
    padding: 0.3rem 0.75rem;
}

/* ============================================================
   BOTONES PERSONALIZADOS ORB NEÓN
   ============================================================ */

.btn-orb {
    background: rgba(56,189,248,0.2);
    border: 1px solid rgba(56,189,248,0.35);
    color: var(--orb-blue-light);
    padding: 8px 16px;
    border-radius: 10px;
    transition: 0.15s;
}

.btn-orb:hover {
    background: rgba(56,189,248,0.35);
    border-color: rgba(56,189,248,0.55);
    box-shadow: 0 0 18px rgba(56,189,248,0.55);
    color: #fff;
}

/* Botón rojo para eliminar */
.btn-orb-danger {
    background: rgba(239,68,68,0.25);
    border: 1px solid rgba(239,68,68,0.4);
    color: #fca5a5;
}

.btn-orb-danger:hover {
    background: rgba(239,68,68,0.45);
    border-color: rgba(239,68,68,0.65);
    box-shadow: 0 0 18px rgba(239,68,68,0.55);
    color: #fff;
}

/* ============================================================
   TOASTS GLOBAL (Utilities::renderFlashes)
   ============================================================ */

.bt-toast {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 10px;
    color: #fff;
    font-size: 14px;
    backdrop-filter: blur(8px);
}

.bt-toast-success {
    background: rgba(34,197,94,0.55);
    border: 1px solid rgba(34,197,94,0.75);
}

.bt-toast-error {
    background: rgba(239,68,68,0.5);
    border: 1px solid rgba(239,68,68,0.8);
}

.bt-toast-info {
    background: rgba(59,130,246,0.55);
    border: 1px solid rgba(59,130,246,0.75);
}

/* ============================================================
   ELEMENTOS GENERALES EXTRA
   ============================================================ */

a {
    color: var(--orb-blue-light);
}
a:hover {
    color: var(--orb-blue);
}

hr {
    border-color: rgba(148,163,184,0.2);
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Animación para hover suave */
.hover-lift {
    transition: transform .12s ease, box-shadow .15s ease;
}
.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 22px rgba(56,189,248,0.35);
}

/* ============================================================
   CENTRO DE NOTIFICACIONES · LISTA + ITEMS + PAGINADOR
   ============================================================ */

/* Contenedor scroll de la bandeja */
.bs-notify-list {
    max-height: 520px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Item base */
.bs-notify-item {
    background: radial-gradient(circle at 0 0, rgba(56,189,248,0.22), transparent 60%),
                rgba(15,23,42,0.85);
    border: 1px solid rgba(148,163,184,0.28);
    border-radius: 10px;
    color: #e5e7eb;
    transition:
        background 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.12s ease,
        border-color 0.15s ease;
}

/* Hover / focus */
.bs-notify-item:hover {
    background: radial-gradient(circle at 0 0, rgba(56,189,248,0.28), transparent 60%),
                rgba(15,23,42,0.95);
    border-color: rgba(56,189,248,0.55);
    box-shadow: 0 0 18px rgba(56,189,248,0.6);
    transform: translateY(-1px);
    text-decoration: none;
}

/* Estado "Nuevo" / "Leído" mejor integrados con el tema */
.bs-notify-list .badge.bg-primary-subtle {
    background: rgba(56,189,248,0.25) !important;
    color: #7dd3fc !important;
    border-color: rgba(56,189,248,0.55) !important;
}

.bs-notify-list .badge.bg-secondary-subtle {
    background: rgba(75,85,99,0.35) !important;
    color: #d1d5db !important;
    border-color: rgba(107,114,128,0.7) !important;
}

/* Badge de categoría */
.bs-notify-list .badge.bg-dark {
    background: rgba(15,23,42,0.9) !important;
    border-color: rgba(148,163,184,0.4) !important;
    color: #e5e7eb !important;
    letter-spacing: .05em;
}

/* Texto principal y snippet */
.bs-notify-item .fw-semibold.small {
    color: #e5e7eb;
}

.bs-notify-item .small.text-secondary {
    color: #9ca3af !important;
}

/* Un poquito de separación entre items */
.bs-notify-item + .bs-notify-item {
    margin-top: 4px;
}

/* Paginador de notificaciones */
.bt-paginador {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    color: #9ca3af;
}

.bt-paginador a {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.22);
    color: #e5e7eb;
    text-decoration: none;
    background: rgba(15,23,42,0.9);
    transition: background 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.bt-paginador a:hover {
    background: rgba(56,189,248,0.25);
    border-color: rgba(56,189,248,0.6);
    box-shadow: 0 0 14px rgba(56,189,248,0.45);
}

/* ============================================================
   ESPACIO PARA QUE EL BOTTOM NAV NO TAPE CONTENIDO
   ============================================================ */

/* Todo el contenido central dentro del panel autenticado */
.app--with-sidebar .content-inner,
.app--with-sidebar .bs-dashboard-content {
    padding-bottom: 40px;
}

/* También para vistas móviles donde no hay sidebar fijo, pero sí bottom-nav */
.app .content-inner,
.app .bs-dashboard-content {
    padding-bottom: 40px;
}

