/* ================================
   DARK NOXUS THEME – ICP CONTROL PANEL
   ================================ */

body {
    background: radial-gradient(circle at top left, #020617 0, #000 55%);
    color: #e5e7eb;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .875rem;
}

/* Top bar */
header.navbar {
    background: #020617 !important;
    border-bottom: 1px solid #111827;
}

header.navbar .navbar-brand {
    color: #e5e7eb !important;
}

header.navbar .navbar-brand:hover {
    color: #60a5fa !important;
}

header.navbar .form-control-dark,
header.navbar .form-control {
    background-color: #020617;
    border-color: #111827;
    color: #e5e7eb;
}

header.navbar .form-control-dark::placeholder {
    color: #6b7280;
}

/* Dropdown de balance */
header .btn-group .btn-secondary {
    background-image: linear-gradient(135deg, #2563eb, #7c3aed);
    border: none;
    color: #f9fafb;
}

header .btn-group .btn-secondary:hover {
    filter: brightness(1.15);
    box-shadow: 0 0 18px rgba(59,130,246,0.7);
}

/* Sidebar */
#sidebarMenu {
    background: #050816 !important;
    border-right: 1px solid #111827;
}

#sidebarMenu .nav-link,
#sidebarMenu a {
    color: #e5e7eb !important;
}

#sidebarMenu .nav-link:hover,
#sidebarMenu .nav-link.active {
    background: linear-gradient(90deg, #1d4ed8, #7c3aed);
    color: #ffffff !important;
    border-radius: 0 999px 999px 0;
}

/* FIX: títulos blancos del sidebar */
#sidebarMenu .sidebar-heading,
#sidebarMenu .sidebar-heading span,
#sidebarMenu .sidebar-heading .text-muted {
    color: #e5e7eb !important;
}

/* Forzamos links/simbolitos */
#sidebarMenu .nav-link span,
#sidebarMenu .nav-link i {
    color: #e5e7eb !important;
}

/* List-group del sidebar */
#sidebarMenu .list-group-item {
    background-color: #050816 !important;
    color: #e5e7eb !important;
    border-color: #111827 !important;
}

#sidebarMenu.bg-light {
    background-color: #050816 !important;
}

/* Cards / contenedores */
.card,
.panel,
.panel-default,
.panel-body,
.panel-heading,
.box,
.box-body,
main .container,
main .row > div,
main .col,
main .col-md-6,
main .col-md-4,
main .col-md-3 {
    background: transparent;
    border: none;
}

.card,
.panel,
.box,
div[class*="card-"],
div[class*="panel-"] {
    background: radial-gradient(circle at top left, #111827 0, #020617 60%);
    border: 1px solid #1f2937;
    border-radius: 10px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.45);
}

/* Títulos */
h1, h2, h3, h4, h5 {
    color: #f9fafb;
}

/* Tablas */
table {
    color: #e5e7eb;
}

table thead tr {
    background: #111827;
}

table tbody tr:nth-child(even) {
    background: rgba(15,23,42,0.7);
}

table tbody tr:nth-child(odd) {
    background: rgba(15,23,42,0.4);
}

table tbody tr:hover {
    background: rgba(37,99,235,0.35);
}

/* Botones */
.btn,
button {
    border-radius: 999px;
    border: none;
    font-weight: 500;
    transition: all .15s ease-in-out;
}

.btn-primary,
.btn-success,
.btn-info {
    background-image: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #f9fafb;
}

.btn-primary:hover,
.btn-success:hover,
.btn-info:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(59,130,246,0.7);
}

.btn-danger {
    background-image: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #fef2f2;
}

/* Links */
a {
    color: #60a5fa;
}

a:hover {
    color: #93c5fd;
    text-decoration: none;
}

/* Badge */
.badge,
.label {
    background: linear-gradient(135deg, #22c55e, #15803d);
    color: #ecfdf5;
    border-radius: 999px;
}

/* Inputs */
input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
    background: #020617;
    border: 1px solid #111827;
    color: #e5e7eb;
    border-radius: 8px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6;
}

/* Alertas */
.alert-success,
.mp-success {
    background: rgba(22,163,74,0.15);
    border: 1px solid rgba(22,163,74,0.7);
    color: #bbf7d0;
}

.alert-warning,
.mp-pending {
    background: rgba(234,179,8,0.12);
    border: 1px solid rgba(234,179,8,0.7);
    color: #facc15;
}

.alert-danger,
.mp-error {
    background: rgba(220,38,38,0.12);
    border: 1px solid rgba(220,38,38,0.7);
    color: #fecaca;
}

/* ====================================
   FIX DEFINITIVO DE TITULOS DEL SIDEBAR
   ==================================== */

#sidebarMenu .menu-title {
    background-color: #050816 !important;
    color: #e5e7eb !important;
    border-color: #111827 !important;
    padding: 12px 16px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    opacity: 1 !important;
}

#sidebarMenu .menu-title .nav-link {
    color: #e5e7eb !important;
    cursor: default !important;
}

#sidebarMenu .menu-title:hover {
    background-color: #050816 !important;
}

/* ====================================
   FIX DE CONTRASTE GENERAL DE TEXTO
   ==================================== */

/* Texto base más claro en todo el panel */
body,
p,
span,
li,
.nav-link,
label,
.form-label,
.card,
.panel,
.box {
    color: #e5e7eb !important;
}

/* Títulos importantes aún más brillantes */
h1, h2, h3, h4, h5,
.card-title,
.panel-title {
    color: #f9fafb !important;
}

/* Cajitas tipo "Name", "Email" (input-group-text / labels) */
.input-group-text,
.form-label,
label.badge-label {
    background-color: #020617 !important;   /* ya no blanco */
    border-color: #111827 !important;
    color: #e5e7eb !important;
}

/* Campos de texto */
input.form-control,
textarea.form-control,
select.form-control {
    background-color: #020617 !important;
    border: 1px solid #111827 !important;
    color: #e5e7eb !important;
}

input.form-control::placeholder,
textarea.form-control::placeholder {
    color: #9ca3af !important;
}

/* Texto de botones siempre bien blanco */
.btn,
.btn span,
.btn i {
    color: #f9fafb !important;
}

/* ====================================
   FIX TEXTO EN TABLAS (HISTORIAL, LOGS)
   ==================================== */

table td,
table th,
.table td,
.table th {
    color: #e5e7eb !important;        /* texto claro y legible */
}

/* Mensajes de "no hay registros" */
table td[colspan],
.table td[colspan] {
    color: #f9fafb !important;        /* un poquito más brillante */
    font-style: italic;
}

/* ================================
   VIDEO BACKGROUND – DARK NOXUS
================================ */

#bgVideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    opacity: 0.6;                       /* antes 0.25 */
    filter: blur(1px) brightness(0.6) contrast(1.15);
}


/* Fondo adicional para mejorar contraste */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, rgba(0,0,0,0.35) 0, rgba(0,0,0,0.75) 100%);
    z-index: -1;
}

/* ================================
   BOTÓN DE MÚSICA – ESQUINA INFERIOR DERECHA
   ================================ */

.music-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: none;
    background-image: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.8);
    cursor: pointer;
    z-index: 9999;
}

.music-toggle-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

.music-toggle-btn.muted {
    background-image: linear-gradient(135deg, #4b5563, #111827);
    color: #e5e7eb;
}



.floating-chat {
    position: fixed;
    bottom: 20px;       /* Separación desde abajo */
    right: 20px;        /* AHORA está a la derecha */
    z-index: 99999;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #222;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-chat:hover {
    transform: scale(1.1);
    box-shadow: 0 0 14px rgba(255, 200, 0, 0.6);
}
