/* ===========================
   DARK PRO ULTRA CLEAN
=========================== */

/* Fondo global */
body.dark-mode {
    background: #0b0f19 !important;
    color: #e5e7eb;
}

/* ================= NAVBAR ================= */

.main-header.navbar {
    background: #0c111d !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* ================= SIDEBAR ================= */

.main-sidebar {
    background: #0f172a !important;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.brand-link {
    background: #0f172a !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ================= CONTENT ================= */

.content-wrapper {
    background: #0b0f19 !important;
}

/* ================= CARDS ================= */

.card {
    background: #111827 !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5) !important;
}

/* ================= TABLE ================= */

.table {
    color: #e2e8f0;
}

.table thead th {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.table td {
    border-color: rgba(255, 255, 255, 0.04) !important;
}

.table-bordered {
    border: none !important;
}

/* ================= SIDEBAR MENU ================= */

/* Base */
.nav-sidebar .nav-link {
    color: #9ca3af !important;
    border-radius: 10px !important;
    transition: all .2s ease;
}

/* Hover oscuro elegante */
.nav-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
}

/* Activo elegante azul profundo */
.nav-sidebar .nav-link.active {
    background: #1e293b !important;
    color: #ffffff !important;
}

/* Submenu */
.nav-treeview>.nav-item>.nav-link.active {
    background: #1e293b !important;
}

/* ================= DROPDOWN PERFIL ================= */

.navbar-nav .dropdown-menu {
    background: #111827 !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
}

.dropdown-item {
    color: #e5e7eb !important;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
}

.navbar-nav .dropdown-menu .user-footer {
    background: transparent !important;
}

/* ================= LOGIN WRAPPER ================= */

.login-page {
    background: radial-gradient(circle at top left, #1e293b, #0b0f19 60%);
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================= BRAND ================= */

.login-brand {
    text-align: center;
    margin-bottom: 30px;
}

.logo-circle {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.login-brand h2 {
    font-weight: 600;
    margin-bottom: 4px;
}

.login-brand p {
    font-size: 13px;
    opacity: .6;
}

/* ================= INPUT STATES ================= */

.modern-input input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    transition: .2s ease;
}

.modern-input.has-error input {
    border-color: #ef4444;
}

.modern-error {
    display: block;
    font-size: 12px;
    margin-top: -10px;
    margin-bottom: 10px;
    color: #ef4444;
}

/* ================= OPTIONS ================= */

.modern-options {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 20px;
}

.modern-options a {
    color: #2563eb;
    text-decoration: none;
}

.modern-options a:hover {
    text-decoration: underline;
}

/* ================= BUTTON ================= */

.modern-btn {
    width: 100%;
    padding: 13px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-weight: 600;
    transition: .25s ease;
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}


/* ============================
   TOM SELECT DARK MODE
   ============================ */

.ts-wrapper.single .ts-control,
.ts-wrapper.multi .ts-control {
    background-color: #343a40 !important;
    color: #ffffff !important;
    border: 1px solid #6c757d !important;
    border-radius: 4px !important;
    min-height: 38px;
}

.ts-wrapper.focus .ts-control {
    border-color: #ffc107 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25) !important;
}

.ts-control input {
    color: #ffffff !important;
}

.ts-control input::placeholder {
    color: #adb5bd !important;
}

.ts-dropdown {
    background-color: #1f2933 !important;
    border: 1px solid #495057 !important;
    color: #ffffff !important;
}

.ts-dropdown .option {
    background-color: #1f2933 !important;
    color: #ffffff !important;
    padding: 10px 12px;
}

.ts-dropdown .option:hover,
.ts-dropdown .active {
    background-color: #343a40 !important;
    color: #ffc107 !important;
}

.ts-wrapper.single .ts-control::after {
    border-color: #ffffff transparent transparent transparent !important;
}

.ts-wrapper.single.dropdown-active .ts-control::after {
    border-color: transparent transparent #ffffff transparent !important;
}
