/* ─────────────────────────────────────────────────────────────
   Intranet SNPP — Tema: Rojo · Blanco · Azul (Bandera Paraguay)
   ───────────────────────────────────────────────────────────── */
:root {
    --sidebar-width: 265px;
    --topbar-height: 60px;

    /* Rojo institucional */
    --red:        #c0392b;
    --red-dark:   #922b21;
    --red-light:  #e74c3c;

    /* Azul institucional */
    --blue:       #1a3a6b;
    --blue-dark:  #112549;
    --blue-light: #2c5f8a;
    --blue-mid:   #1e4d8c;

    /* Blanco / fondos */
    --white:      #ffffff;
    --body-bg:    #f0f3f8;   /* fondo ligeramente azulado para el tema */

    /* Alias para compatibilidad con componentes Bootstrap */
    --primary:      var(--red);
    --primary-dark: var(--red-dark);
    --accent-blue:  var(--blue);
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--body-bg);
    margin: 0; padding: 0;
    overflow-x: hidden;
}

/* ══════════════════════════════════════════════
   SIDEBAR — Rojo institucional con texto blanco
   ══════════════════════════════════════════════ */
#sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--red);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform .3s ease;
    border-right: none;
    box-shadow: 3px 0 16px rgba(192,57,43,.4);
}

/* Membrete / Logo */
.sidebar-brand {
    padding: .8rem 1rem .65rem;
    background: var(--white);
    border-bottom: 3px solid var(--red);
    text-align: center;
}

.sidebar-logo {
    display: block;
    width: 100%;
    max-height: 64px;
    object-fit: contain;
    background: var(--white);
    border-radius: 4px;
}

.sidebar-logo-fallback {
    display: none;
    align-items: center;
    gap: .6rem;
    justify-content: center;
    padding: .25rem 0;
}

/* Título del sistema */
.sidebar-title-bar {
    padding: .4rem 1.25rem;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
    background: rgba(0,0,0,.15);
    border-bottom: 1px solid rgba(255,255,255,.12);
}

/* Navegación */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: .5rem 0;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 4px; }

.nav-section {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    padding: .75rem 1.25rem .2rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .57rem 1.25rem;
    color: rgba(255,255,255,.82);
    text-decoration: none;
    font-size: .875rem;
    border-left: 3px solid transparent;
    transition: background .15s, color .15s, border-color .15s;
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,.1);
    color: var(--white);
    border-left-color: rgba(255,255,255,.5);
}

.sidebar-nav a.active {
    background: rgba(0,0,0,.22);
    border-left-color: rgba(255,255,255,.9);
    color: var(--white);
    font-weight: 600;
}

.sidebar-nav a i { font-size: 1rem; min-width: 18px; }

/* Footer sidebar */
.sidebar-footer {
    padding: .85rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: .78rem;
    color: rgba(255,255,255,.55);
    background: rgba(0,0,0,.12);
}

/* Stripe tricolor paraguaya (rojo · blanco · azul → visible en brand) */
.sidebar-stripe { display: flex; height: 4px; }
.sidebar-stripe span:nth-child(1) { flex: 1; background: var(--red); }
.sidebar-stripe span:nth-child(2) { flex: 1; background: var(--white); }
.sidebar-stripe span:nth-child(3) { flex: 1; background: var(--blue-light); }

/* Overlay mobile */
#sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 999;
}
#sidebar-overlay.show { display: block; }

/* ══════════════════════════════════════════════
   TOPBAR — Blanco con borde rojo y acento azul
   ══════════════════════════════════════════════ */
#topbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--topbar-height);
    background: var(--white);
    border-bottom: 3px solid var(--red);
    box-shadow: 0 2px 10px rgba(26,58,107,.1);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    z-index: 900;
    gap: 1rem;
}

/* Franja azul fina en el top del topbar */
#topbar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--blue);
}

.topbar-title {
    flex: 1;
    font-weight: 700;
    font-size: 1rem;
    color: var(--red);
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    color: #555;
}

.topbar-avatar {
    width: 34px; height: 34px;
    background: var(--blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    overflow: hidden;
    flex-shrink: 0;
}

.topbar-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ══════════════════════════════════════════════
   CONTENIDO PRINCIPAL
   ══════════════════════════════════════════════ */
#main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--topbar-height);
    padding: 1.5rem;
    min-height: calc(100vh - var(--topbar-height));
}

/* ── Cards ── */
.card { border: none; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }

.card-header {
    background: var(--white);
    border-bottom: 1px solid #f0e4e4;
    border-radius: 10px 10px 0 0 !important;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--red);
}

/* ── Stat cards ── */
.stat-card {
    border-radius: 12px;
    padding: 1.25rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.stat-card::after {
    content: '';
    position: absolute;
    right: -20px; top: -20px;
    width: 100px; height: 100px;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
}
.stat-card .stat-icon  { font-size: 2rem; opacity: .85; }
.stat-card .stat-value { font-size: 2rem; font-weight: 700; line-height: 1; }
.stat-card .stat-label { font-size: .8rem; opacity: .85; margin-top: .25rem; }

.stat-red    { background: linear-gradient(135deg, #c0392b, #e74c3c); }
.stat-blue   { background: linear-gradient(135deg, #1a3a6b, #2c5f8a); }
.stat-green  { background: linear-gradient(135deg, #1e7e4a, #27ae60); }
.stat-yellow { background: linear-gradient(135deg, #b7770d, #e6a817); }
.stat-purple { background: linear-gradient(135deg, #6f42c1, #8b5cf6); }
.stat-navy   { background: linear-gradient(135deg, #1a237e, #283593); }
.stat-crimson{ background: linear-gradient(135deg, #922b21, #c0392b); }

/* ── Tables ── */
.table > thead th {
    background: #fdf5f5;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--red);
    font-weight: 700;
    border-bottom: 2px solid #f0dada;
}

/* ── Botones — Azul primario, Rojo peligro/acción ── */
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-primary:focus { background: var(--blue-dark); border-color: var(--blue-dark); box-shadow: 0 0 0 .25rem rgba(26,58,107,.35); }

.btn-outline-primary { color: var(--blue); border-color: var(--blue); }
.btn-outline-primary:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Botón rojo secundario (acciones destructivas / énfasis) */
.btn-secondary   { background: var(--red); border-color: var(--red); color: #fff; }
.btn-secondary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-outline-secondary { color: #555; border-color: #c8d0d8; }
.btn-outline-secondary:hover { background: #eef2f8; border-color: var(--blue); color: var(--blue); }

/* ── LOGIN ── */
.login-page {
    min-height: 100vh;
    background: linear-gradient(150deg, var(--blue-dark) 0%, var(--blue) 45%, var(--blue-mid) 70%, #8b1a0e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.login-page::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 15% 85%, rgba(192,57,43,.4) 0%, transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(192,57,43,.3) 0%, transparent 45%);
}

.login-card {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    padding: 2rem 2.5rem 2.5rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 70px rgba(0,0,0,.45);
    border-top: 5px solid var(--blue);
    border-bottom: 3px solid var(--red);
}

.login-logo {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
    box-shadow: 0 8px 25px rgba(26,58,107,.4);
}

.login-card .form-control:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 .25rem rgba(26,58,107,.2);
}

/* ── Noticias ── */
.noticia-card {
    border-radius: 10px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.noticia-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(26,58,107,.14) !important;
}
.noticia-img {
    width: 100%; height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, #eef2f8, #dce7f3);
}
.noticia-img-placeholder {
    width: 100%; height: 180px;
    background: linear-gradient(135deg, #eef2f8, #dce7f3);
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: rgba(26,58,107,.2);
}
.badge-estado-publicado { background: #e8f5e9; color: #1e7e4a; border: 1px solid #a5d6a7; }
.badge-estado-borrador  { background: #fff8e1; color: #b7770d; border: 1px solid #ffe082; }
.badge-estado-archivado { background: #f3f4f6; color: #6c757d; border: 1px solid #dee2e6; }

/* ── Documentos ── */
.doc-card {
    border-radius: 10px;
    transition: background .15s, box-shadow .15s;
    cursor: pointer;
}
.doc-card:hover {
    background: #eef2f8 !important;
    box-shadow: 0 4px 16px rgba(26,58,107,.1) !important;
}
.doc-icon { font-size: 2rem; }
.doc-category-badge {
    font-size: .7rem; font-weight: 600;
    padding: .2rem .6rem; border-radius: 20px;
    background: rgba(26,58,107,.1);
    color: var(--blue);
}
.badge-vigente   { background: #e8f5e9; color: #1e7e4a; }
.badge-obsoleto  { background: #fff3e0; color: #e65100; }
.badge-archivado { background: #f3f4f6; color: #6c757d; }

/* ── Directorio ── */
.dir-card {
    border-radius: 12px;
    transition: transform .2s, box-shadow .2s;
}
.dir-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26,58,107,.12) !important;
}
.dir-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--white); font-weight: 700;
    flex-shrink: 0; overflow: hidden;
}
.dir-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ── Page header ── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.page-header h1 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--red);
    margin: 0;
}

/* ── Misc ── */
.badge { font-weight: 500; }
.table-actions .btn { padding: .2rem .5rem; font-size: .8rem; }

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #c8d8ed; border-radius: 6px; padding: .35rem .75rem;
}
.dataTables_wrapper .dataTables_filter input:focus { border-color: var(--blue); outline: none; }
.dataTables_wrapper .dataTables_length select { border: 1px solid #c8d8ed; border-radius: 6px; padding: .2rem .5rem; }
.dataTables_wrapper .page-link { color: var(--blue); }
.dataTables_wrapper .page-item.active .page-link { background: var(--blue); border-color: var(--blue); }

.alert-flash { animation: slideDown .3s ease; }
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Paginación */
.page-link { color: var(--blue); }
.page-item.active .page-link { background: var(--blue); border-color: var(--blue); }

/* ── Módulo Cumpleaños ── */
.birthday-banner {
    background: linear-gradient(135deg, #1a3a6b 0%, #c0392b 60%, #e74c3c 100%);
    border-radius: 14px;
    padding: 1.5rem 2rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 24px rgba(192,57,43,.35);
}
.birthday-banner::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.birthday-banner .banner-icon {
    font-size: 3rem;
    position: relative;
    animation: bounce-cake .9s ease infinite alternate;
}
@keyframes bounce-cake {
    from { transform: translateY(0); }
    to   { transform: translateY(-6px); }
}
.birthday-banner .banner-title {
    font-size: 1.5rem;
    font-weight: 800;
    position: relative;
}
.birthday-banner .banner-sub {
    font-size: .9rem;
    opacity: .88;
    position: relative;
}
.birthday-confetti {
    position: absolute;
    right: 2rem; top: 50%;
    transform: translateY(-50%);
    font-size: 2.8rem;
    opacity: .25;
    pointer-events: none;
}

.birthday-card {
    border-radius: 12px;
    transition: transform .2s, box-shadow .2s;
    border: 2px solid transparent;
}
.birthday-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(192,57,43,.15) !important;
}
.birthday-card.is-today {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(192,57,43,.15) !important;
}
.birthday-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.2rem; color: #fff;
}
.birthday-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ── Chat widget ── */
#chat-bubble { transition: transform .2s, box-shadow .2s; }
#chat-bubble:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(192,57,43,.6); }
#chat-panel { animation: chatSlideUp .2s ease; }
@keyframes chatSlideUp {
    from { opacity:0; transform: translateY(12px); }
    to   { opacity:1; transform: translateY(0); }
}
#chat-widget-msgs::-webkit-scrollbar { width: 4px; }
#chat-widget-msgs::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 4px; }
#chat-messages::-webkit-scrollbar { width: 5px; }
#chat-messages::-webkit-scrollbar-thumb { background: rgba(0,0,0,.12); border-radius: 4px; }

/* Chat page */
.chat-day-sep {
    text-align: center;
    font-size: .72rem;
    color: #aaa;
    margin: .5rem 0;
    position: relative;
}
.chat-day-sep::before, .chat-day-sep::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: #e0e0e0;
}
.chat-day-sep::before { left: 0; }
.chat-day-sep::after  { right: 0; }

[data-theme="dark"] #chat-panel { background: #132036; }
[data-theme="dark"] #chat-widget-msgs { background: #0e1621; }
[data-theme="dark"] #chat-widget-msgs > div > div:last-child { background: #1a2940 !important; color: #d8e4f0 !important; }
[data-theme="dark"] #chat-messages  { background: #0e1621; }

/* ── Responsive ── */
@media (max-width: 768px) {
    #sidebar { transform: translateX(-100%); }
    #sidebar.open { transform: translateX(0); }
    #topbar { left: 0; padding-left: .75rem; }
    #topbar::before { display: none; }
    #main-content { margin-left: 0; }
}

/* ══════════════════════════════════════════════
   DARK MODE
   ══════════════════════════════════════════════ */
[data-theme="dark"] body { background: #0e1621; color: #d8e4f0; }

/* Sidebar dark: rojo oscuro */
[data-theme="dark"] #sidebar {
    background: #4a0d09;
    box-shadow: 3px 0 16px rgba(0,0,0,.5);
}
[data-theme="dark"] .sidebar-brand { background: #2d0808; border-bottom-color: var(--red-light); }
[data-theme="dark"] .sidebar-logo  { background: rgba(255,255,255,.9); border-radius: 4px; }
[data-theme="dark"] .sidebar-title-bar { color: rgba(255,255,255,.5); background: rgba(0,0,0,.2); }
[data-theme="dark"] .nav-section { color: rgba(255,255,255,.3); }
[data-theme="dark"] .sidebar-nav a { color: rgba(255,255,255,.7); }
[data-theme="dark"] .sidebar-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
[data-theme="dark"] .sidebar-nav a.active { background: rgba(0,0,0,.3); color: #fff; border-left-color: rgba(255,255,255,.8); }
[data-theme="dark"] .sidebar-footer { border-top-color: rgba(255,255,255,.08); color: rgba(255,255,255,.3); background: rgba(0,0,0,.15); }
[data-theme="dark"] .sidebar-stripe span:nth-child(2) { background: rgba(255,255,255,.15); }

/* Topbar dark */
[data-theme="dark"] #topbar { background: #111e2f; border-bottom-color: var(--red); }
[data-theme="dark"] #topbar::before { background: var(--blue-light); }
[data-theme="dark"] .topbar-title { color: #d8e4f0; }
[data-theme="dark"] .topbar-user  { color: #90a8c8; }
[data-theme="dark"] #theme-toggle { background: #1a2d45; border-color: #2c4060; color: #f0c040; }

/* Cards dark */
[data-theme="dark"] .card { background: #132036 !important; box-shadow: 0 2px 10px rgba(0,0,0,.4); border-color: #1e3050 !important; }
[data-theme="dark"] .card-header { background: #1a2940 !important; border-bottom-color: #1e3050 !important; color: #d8e4f0; }
[data-theme="dark"] .card-body { color: #d8e4f0; }
[data-theme="dark"] .card-body .text-muted { color: #7090b0 !important; }
[data-theme="dark"] .card-footer { background: #1a2940 !important; border-top-color: #1e3050 !important; }

/* Tables dark */
[data-theme="dark"] .table {
    color: #d8e4f0;
    --bs-table-color: #d8e4f0; --bs-table-bg: #132036;
    --bs-table-border-color: #1e3050;
    --bs-table-hover-bg: rgba(255,255,255,.05);
}
[data-theme="dark"] .table > :not(caption) > * > * { color: #d8e4f0; border-bottom-color: #1e3050; background-color: var(--bs-table-bg, #132036); }
[data-theme="dark"] .table > thead th { background: #1a2940; color: #7cb8e0; border-bottom-color: #2c4060; }
[data-theme="dark"] .table-hover > tbody > tr:hover > * { background-color: rgba(255,255,255,.05); }

/* Forms dark */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select { background-color: #1a2940; border-color: #2c4060; color: #d8e4f0; }
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus { background-color: #1a2940; border-color: var(--blue-light); color: #d8e4f0; box-shadow: 0 0 0 .25rem rgba(44,95,138,.3); }
[data-theme="dark"] .form-control::placeholder { color: #456080; }
[data-theme="dark"] .input-group-text { background-color: #1e3050; border-color: #2c4060; color: #7090b0; }
[data-theme="dark"] .form-check-label { color: #d8e4f0; }

/* Page header dark */
[data-theme="dark"] .page-header h1 { color: #90c8f0; }

/* Buttons dark */
[data-theme="dark"] .btn-light { background: #1a2940; border-color: #2c4060; color: #d8e4f0; }
[data-theme="dark"] .btn-outline-secondary { color: #7090b0; border-color: #2c4060; }
[data-theme="dark"] .btn-outline-secondary:hover { background: #1e3050; color: #d8e4f0; border-color: var(--blue-light); }
[data-theme="dark"] .btn-outline-primary { color: #7cb8e8; border-color: var(--blue-light); }
[data-theme="dark"] .btn-outline-primary:hover { background-color: var(--blue-light); color: #fff; }
[data-theme="dark"] .btn-outline-danger { color: #f08080; border-color: #c0392b; }
[data-theme="dark"] .btn-outline-danger:hover { background-color: #922b21; border-color: #922b21; color: #fff; }

/* Pagination dark */
[data-theme="dark"] .page-link { background-color: #1a2940; border-color: #2c4060; color: #90c8f0; }
[data-theme="dark"] .page-link:hover { background-color: #1e3050; border-color: #3a5a80; color: #fff; }
[data-theme="dark"] .page-item.active .page-link { background-color: var(--blue-light); border-color: var(--blue-light); color: #fff; }

/* DataTables dark */
[data-theme="dark"] .dataTables_wrapper input,
[data-theme="dark"] .dataTables_wrapper select { background-color: #1a2940 !important; border-color: #2c4060 !important; color: #d8e4f0 !important; }
[data-theme="dark"] .dataTables_wrapper .dataTables_info,
[data-theme="dark"] .dataTables_wrapper .dataTables_filter label,
[data-theme="dark"] .dataTables_wrapper .dataTables_length label,
[data-theme="dark"] .dataTables_wrapper .dataTables_paginate { color: #7090b0; }

/* Alerts dark */
[data-theme="dark"] .alert { border-color: #2c4060; }
[data-theme="dark"] .alert-danger  { background: #2d1515; color: #f08080; border-color: #5a2020; }
[data-theme="dark"] .alert-warning { background: #2d2215; color: #f0c040; border-color: #5a4820; }
[data-theme="dark"] .alert-success { background: #152d1e; color: #50c878; border-color: #1e5030; }
[data-theme="dark"] .alert-info    { background: #0e2030; color: #60b8e8; border-color: #1e4060; }

/* Dropdown dark */
[data-theme="dark"] .dropdown-menu { background-color: #132036; border-color: #2c4060; }
[data-theme="dark"] .dropdown-item { color: #d8e4f0; }
[data-theme="dark"] .dropdown-item:hover { background-color: #1a2940; color: #fff; }

/* Modal dark */
[data-theme="dark"] .modal-content { background-color: #132036; border-color: #2c4060; }
[data-theme="dark"] .modal-header  { border-bottom-color: #1e3050; }
[data-theme="dark"] .modal-footer  { border-top-color: #1e3050; }

/* Listgroup dark */
[data-theme="dark"] .list-group-item { background-color: #132036; border-color: #1e3050; color: #d8e4f0; }
[data-theme="dark"] .list-group-item-action:hover { background-color: #1a2940; color: #fff; }
[data-theme="dark"] .list-group-item-action.active { background-color: var(--blue-light); border-color: var(--blue-light); }

/* Noticia dark */
[data-theme="dark"] .noticia-img-placeholder { background: linear-gradient(135deg, #1a2940, #1e3050); color: rgba(26,58,107,.4); }
[data-theme="dark"] .doc-card:hover { background: #1a2940 !important; }
[data-theme="dark"] .dir-card { background: #132036; }

/* Misc dark */
[data-theme="dark"] .text-muted   { color: #7090b0 !important; }
[data-theme="dark"] .text-dark    { color: #d8e4f0 !important; }
[data-theme="dark"] .bg-white     { background-color: #132036 !important; }
[data-theme="dark"] .bg-light     { background-color: #1a2940 !important; }
[data-theme="dark"] hr            { border-color: #1e3050; }
[data-theme="dark"] small, [data-theme="dark"] .small { color: #7090b0; }
[data-theme="dark"] label:not(.form-check-label) { color: #a8c8e0; }
[data-theme="dark"] .border, [data-theme="dark"] .border-bottom, [data-theme="dark"] .border-top { border-color: #1e3050 !important; }
[data-theme="dark"] .doc-category-badge { background: rgba(44,95,138,.25); color: #7cb8e0; }
[data-theme="dark"] .birthday-card.is-today { border-color: var(--red-light); box-shadow: 0 0 0 3px rgba(231,76,60,.15) !important; }
[data-theme="dark"] .badge.bg-light, [data-theme="dark"] .badge.bg-light.text-dark { background-color: #1e3050 !important; color: #d8e4f0 !important; }
[data-theme="dark"] input[readonly].bg-light, [data-theme="dark"] .form-control.bg-light { background-color: #1a2940 !important; border-color: #2c4060 !important; color: #7090b0 !important; }
[data-theme="dark"] .fw-semibold { color: inherit; }
[data-theme="dark"] .text-secondary { color: #7090b0 !important; }
