:root {
    --bg-main: #0b0f14;
    --bg-panel: #121821;
    --bg-card: rgba(18, 24, 33, 0.92);
    --border-color: rgba(148, 163, 184, 0.16);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-highlight: #38bdf8;
    --primary: #0ea5e9;
    --primary-hover: #0284c7;
    --green: #10b981;
    --red: #ef4444;
    --yellow: #f59e0b;
    --table-header: #0f151d;
    --table-row-hover: rgba(56, 189, 248, 0.06);
    --sidebar-bg: rgba(11, 17, 24, 0.96);
}

html[data-theme="light"] {
    --bg-main: #f1f5f9;
    --bg-panel: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.95);
    --border-color: rgba(148, 163, 184, 0.28);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-highlight: #0284c7;
    --table-header: #e2e8f0;
    --table-row-hover: rgba(14, 165, 233, 0.08);
    --sidebar-bg: rgba(255, 255, 255, 0.96);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main) !important;
    color: var(--text-main) !important;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.85rem !important;
    margin: 0;
    min-height: 100vh;
}

body.custom-wallpaper {
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

.painel-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}

body.has-side-menu .painel-container {
    width: min(1280px, calc(100vw - 290px));
    max-width: min(1280px, calc(100vw - 290px));
    margin-left: max(270px, calc(((100vw - 1520px) / 2) + 270px));
    margin-right: 20px;
}

@media (max-width: 991.98px) {
    body.has-side-menu .painel-container {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-top: 72px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        padding-bottom: 30px !important;
    }
}

@media (max-width: 576px) {
    body.has-side-menu .painel-container {
        padding-top: 68px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        padding-bottom: 24px !important;
    }
}

/* MOBILE TOP BAR */
.mobile-top-bar {
    display: none;
}

@media (max-width: 991.98px) {
    .mobile-top-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 58px;
        padding: 0 14px;
        background: var(--sidebar-bg);
        border-bottom: 1px solid var(--border-color);
        z-index: 1040;
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    }
}

.btn-mobile-menu-toggle {
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.35);
    color: var(--text-highlight);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-mobile-menu-toggle:active {
    transform: scale(0.94);
    background: var(--primary);
    color: #ffffff;
}

.mobile-top-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.mobile-logo-img {
    height: 38px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}

.mobile-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-mobile-quick-theme,
.btn-mobile-quick-logout {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-mobile-quick-theme:hover,
.btn-mobile-quick-theme:active {
    background: rgba(14, 165, 233, 0.2);
    color: var(--text-highlight);
}

.btn-mobile-quick-logout:hover,
.btn-mobile-quick-logout:active {
    background: rgba(239, 68, 68, 0.2);
    color: var(--red);
}

/* SIDEBAR BACKDROP */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1045;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

@media (max-width: 991.98px) {
    .sidebar-backdrop {
        display: block;
    }
    .sidebar-backdrop.show,
    body.sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
}

/* SIDEBAR */
.side-menu {
    position: fixed;
    top: 12px;
    bottom: 12px;
    left: max(14px, calc((100vw - 1520px) / 2));
    width: 235px;
    z-index: 1000;
    background: var(--sidebar-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.side-menu::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.side-brand-mobile-header {
    display: none;
}

@media (max-width: 991.98px) {
    .side-menu {
        top: 0;
        bottom: 0;
        left: 0;
        right: auto;
        width: 290px;
        max-width: 86vw;
        height: 100vh;
        height: 100dvh;
        z-index: 1050;
        border-radius: 0 16px 16px 0;
        border-left: none;
        transform: translateX(-105%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 14px 12px;
        gap: 6px;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.75);
    }

    body.sidebar-open .side-menu,
    .side-menu.show {
        transform: translateX(0);
    }

    .side-brand-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 4px 6px 12px;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 4px;
    }

    .side-brand-mobile-title {
        font-weight: 800;
        font-size: 0.95rem;
        color: var(--text-main);
    }

    .btn-close-sidebar {
        background: rgba(239, 68, 68, 0.16);
        border: 1px solid rgba(239, 68, 68, 0.35);
        color: #f87171;
        width: 34px;
        height: 34px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        cursor: pointer;
        transition: all 0.15s ease;
    }

    .btn-close-sidebar:active {
        transform: scale(0.92);
        background: var(--red);
        color: #ffffff;
    }

    .side-menu .btn-nav,
    .side-menu .btn-logout {
        min-height: 40px;
        padding: 8px 12px;
        font-size: 0.84rem;
    }
}

.side-brand {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2px 4px 8px !important;
    width: 100% !important;
}

.side-brand a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    text-decoration: none !important;
}

.side-brand img,
.gorillaplay-logo {
    display: block !important;
    width: 155px !important;
    max-width: 90% !important;
    height: auto !important;
    max-height: 105px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 14px rgba(255, 159, 10, 0.25)) !important;
    transition: transform 0.25s ease, filter 0.25s ease !important;
}

.side-brand img:hover,
.gorillaplay-logo:hover {
    transform: scale(1.05) !important;
    filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 24px rgba(255, 159, 10, 0.45)) !important;
}

.side-menu-title {
    color: var(--text-highlight);
    font-size: 0.67rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 6px 2px;
}

.side-menu .btn-nav,
.side-menu .btn-logout {
    width: 100%;
    text-align: left;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.16s ease;
    cursor: pointer;
}

.side-menu .btn-nav:hover,
.side-menu .btn-logout:hover,
.side-menu .btn-nav.active,
.side-menu .btn-logout.active {
    background: var(--primary);
    border-color: var(--text-highlight);
    color: #ffffff !important;
    transform: translateY(-1px);
}

.side-menu .btn-nav i,
.side-menu .btn-logout i {
    width: 16px;
    text-align: center;
}

.side-count {
    margin-left: auto;
    min-width: 24px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.16);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: var(--text-highlight);
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
}

/* CARDS */
.card-custom {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 10px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(8px);
}

/* STATS */
.stat-box {
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* TABELAS */
.painel-tabela {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background-color: transparent !important;
}

.painel-tabela th {
    background-color: var(--table-header) !important;
    color: var(--text-highlight) !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    padding: 10px 12px !important;
    border-bottom: 1px solid var(--border-color) !important;
    text-transform: uppercase;
    white-space: nowrap;
}

.painel-tabela td {
    padding: 10px 12px !important;
    border-bottom: 1px solid var(--border-color) !important;
    vertical-align: middle !important;
    color: var(--text-main) !important;
    font-size: 0.84rem !important;
    background-color: transparent !important;
}

.painel-tabela tbody tr:hover td {
    background-color: var(--table-row-hover) !important;
}

/* STATUS & BADGES */
.bola {
    width: 9px;
    height: 9px;
    display: inline-block;
    border-radius: 50%;
    vertical-align: middle;
}

.bola-verde {
    background-color: var(--green);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

.bola-vermelha {
    background-color: var(--red);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
}

.badge-qualidade {
    font-size: 0.7rem !important;
    padding: 3px 7px !important;
    font-family: monospace;
    font-weight: 800 !important;
    border-radius: 4px;
    display: inline-block;
    text-align: center;
    min-width: 42px;
}

.badge-fhd { background-color: #10b981; color: #ffffff; }
.badge-hd  { background-color: #0ea5e9; color: #ffffff; }
.badge-sd  { background-color: #f59e0b; color: #1e293b; }
.badge-sh  { background-color: #64748b; color: #ffffff; }
.badge-var { background-color: #8b5cf6; color: #ffffff; }
.badge-off { background-color: #ef4444; color: #ffffff; }

/* BOTOES DE ACAO TOUCH-FRIENDLY */
.btn-acao {
    padding: 5px 8px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    border-radius: 6px;
    border: none;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform 0.14s ease, filter 0.14s ease;
    white-space: nowrap !important;
    min-width: 32px;
    min-height: 30px;
}

.btn-acao:hover,
.btn-acao:active {
    filter: brightness(1.2);
    transform: scale(1.04);
}

.btn-acao-copy    { background-color: #334155 !important; color: #f8fafc !important; border: 1px solid #475569 !important; }
.btn-acao-play    { background-color: #0ea5e9 !important; color: #ffffff !important; }
.btn-acao-edit    { background-color: #f59e0b !important; color: #1e293b !important; }
.btn-acao-delete  { background-color: #ef4444 !important; color: #ffffff !important; }
.btn-acao-explore { background-color: #10b981 !important; color: #ffffff !important; }

.action-group {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

.col-acoes {
    width: 185px !important;
    min-width: 185px !important;
    white-space: nowrap !important;
    text-align: center !important;
}

.table-responsive {
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin;
    border-radius: 8px;
    margin-bottom: 4px;
}

.painel-tabela td.font-monospace {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .painel-tabela td.font-monospace {
        max-width: 160px;
    }
}

/* INPUTS CUSTOMIZADOS COM PROTECAO CONTRA AUTO-ZOOM NO IOS */
.form-control-custom {
    background-color: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
    font-size: 0.86rem !important;
    padding: 8px 12px !important;
    border-radius: 6px;
    width: 100%;
}

@media (max-width: 768px) {
    .form-control-custom,
    input.form-control-custom,
    select.form-control-custom,
    textarea.form-control-custom {
        font-size: 16px !important; /* Previne auto-zoom no Safari iOS */
    }
}

html[data-theme="light"] .form-control-custom {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.25);
}

.form-control-custom::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.8;
}

/* MODAL & PLAYER RESPONSIVO */
.modal-dialog {
    transition: transform 0.25s ease-out;
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 8px auto !important;
        max-width: calc(100vw - 16px) !important;
        width: calc(100vw - 16px) !important;
    }
}

.modal-content-dark {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    max-height: calc(100dvh - 20px);
    display: flex;
    flex-direction: column;
}

.modal-content-dark .modal-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: calc(100dvh - 130px);
}

.player-video {
    width: 100%;
    aspect-ratio: 16/9;
    max-height: 48vh;
    height: auto;
    object-fit: contain;
    background: #000;
    border-radius: 8px;
}

.player-fallback {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: center;
}

/* TOAST */
.toast-copiado {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(16, 185, 129, 0.95);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.82rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    z-index: 99999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.25s ease;
    pointer-events: none;
}

.toast-copiado.show {
    opacity: 1;
    transform: translateY(0);
}
/* SORT HEADERS */
.btn-sort-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #38bdf8 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    transition: color 0.15s ease, transform 0.15s ease;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

.btn-sort-header:hover {
    color: #7dd3fc !important;
    text-decoration: underline !important;
}

.btn-sort-header i {
    font-size: 0.82rem;
}
/* VISIBILIDADE DE TEXTOS & STATS EM QUALQUER TEMA */
.text-main {
    color: var(--text-main) !important;
}

.stat-value {
    color: var(--text-main) !important;
}

html[data-theme="light"] .text-white {
    color: #0f172a !important;
}

html[data-theme="light"] .stat-value.text-white {
    color: #0f172a !important;
}

html[data-theme="light"] h4.text-white,
html[data-theme="light"] h5.text-white,
html[data-theme="light"] h6.text-white,
html[data-theme="light"] div.text-white {
    color: #0f172a !important;
}

/* PAGINACAO MODERNA */
.pagination {
    margin: 0;
    gap: 3px;
    flex-wrap: wrap;
}

.pagination .page-item .page-link {
    background-color: var(--bg-panel) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
    padding: 4px 10px !important;
    font-size: 0.8rem !important;
    border-radius: 6px !important;
    transition: all 0.15s ease;
    text-decoration: none !important;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
}

.pagination .page-item.disabled .page-link {
    background-color: transparent !important;
    border-color: transparent !important;
    color: var(--text-muted) !important;
    opacity: 0.45;
}

.pagination .page-item .page-link:hover:not(.disabled) {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    color: #ffffff !important;
}

.btn-group-sm > .btn {
    padding: 3px 8px !important;
    font-size: 0.78rem !important;
    border-radius: 4px !important;
}
/* ==========================================================================
   ALERTAS VISÍVEIS E LEGÍVEIS EM QUALQUER TEMA (DARK / LIGHT)
   ========================================================================== */
.alert {
    border-radius: 8px !important;
    font-size: 0.84rem !important;
    line-height: 1.5 !important;
}

/* Alertas no Tema Escuro (Padrão) */
.alert-danger {
    background-color: rgba(239, 68, 68, 0.18) !important;
    border: 1px solid rgba(239, 68, 68, 0.45) !important;
    color: #fecaca !important;
}
.alert-danger strong, .alert-danger b, .alert-danger h1, .alert-danger h2, .alert-danger h3, .alert-danger h4, .alert-danger h5, .alert-danger h6 {
    color: #ffffff !important;
}
.alert-danger i {
    color: #f87171 !important;
}

.alert-info {
    background-color: rgba(14, 165, 233, 0.18) !important;
    border: 1px solid rgba(14, 165, 233, 0.45) !important;
    color: #bae6fd !important;
}
.alert-info strong, .alert-info b {
    color: #ffffff !important;
}
.alert-info i {
    color: #38bdf8 !important;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.18) !important;
    border: 1px solid rgba(16, 185, 129, 0.45) !important;
    color: #a7f3d0 !important;
}
.alert-success strong, .alert-success b {
    color: #ffffff !important;
}
.alert-success i {
    color: #34d399 !important;
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.18) !important;
    border: 1px solid rgba(245, 158, 11, 0.45) !important;
    color: #fef08a !important;
}
.alert-warning strong, .alert-warning b {
    color: #ffffff !important;
}
.alert-warning i {
    color: #fbbf24 !important;
}

.alert-secondary {
    background-color: rgba(148, 163, 184, 0.15) !important;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
    color: #e2e8f0 !important;
}
.alert-secondary strong, .alert-secondary b {
    color: #ffffff !important;
}

/* Alertas no Tema Claro (Light) */
html[data-theme="light"] .alert-danger {
    background-color: #fef2f2 !important;
    border: 1px solid #fca5a5 !important;
    color: #991b1b !important;
}
html[data-theme="light"] .alert-danger strong, html[data-theme="light"] .alert-danger b {
    color: #7f1d1d !important;
}
html[data-theme="light"] .alert-danger i {
    color: #dc2626 !important;
}

html[data-theme="light"] .alert-info {
    background-color: #f0f9ff !important;
    border: 1px solid #7dd3fc !important;
    color: #075985 !important;
}
html[data-theme="light"] .alert-info strong, html[data-theme="light"] .alert-info b {
    color: #0369a1 !important;
}
html[data-theme="light"] .alert-info i {
    color: #0284c7 !important;
}

html[data-theme="light"] .alert-success {
    background-color: #ecfdf5 !important;
    border: 1px solid #6ee7b7 !important;
    color: #065f46 !important;
}
html[data-theme="light"] .alert-success strong, html[data-theme="light"] .alert-success b {
    color: #047857 !important;
}
html[data-theme="light"] .alert-success i {
    color: #059669 !important;
}

html[data-theme="light"] .alert-warning {
    background-color: #fffbeb !important;
    border: 1px solid #fde047 !important;
    color: #92400e !important;
}
html[data-theme="light"] .alert-warning strong, html[data-theme="light"] .alert-warning b {
    color: #78350f !important;
}
html[data-theme="light"] .alert-warning i {
    color: #d97706 !important;
}

html[data-theme="light"] .alert-secondary {
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}
html[data-theme="light"] .alert-secondary strong, html[data-theme="light"] .alert-secondary b {
    color: #0f172a !important;
}

/* ==========================================================================
   MODAIS E FORMULÁRIOS - 100% LEGÍVEIS EM DARK E LIGHT THEME
   ========================================================================== */
/* Tema Escuro (Padrão) */
.modal-content-dark {
    background-color: #121821 !important;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
    color: #f1f5f9 !important;
    border-radius: 12px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
}
.modal-content-dark .modal-header,
.modal-content-dark .modal-footer {
    border-color: rgba(148, 163, 184, 0.18) !important;
}
.modal-content-dark label,
.modal-content-dark .form-label {
    color: #f8fafc !important;
    font-weight: 600 !important;
    font-size: 0.83rem !important;
    display: inline-block;
    margin-bottom: 4px;
}
.modal-content-dark .text-muted,
.modal-content-dark small,
.modal-content-dark .form-text {
    color: #94a3b8 !important;
}
.modal-content-dark code {
    background: rgba(14, 165, 233, 0.22) !important;
    color: #38bdf8 !important;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* Tema Claro (Light) */
html[data-theme="light"] .modal-content-dark {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.22) !important;
}
html[data-theme="light"] .modal-content-dark .modal-header,
html[data-theme="light"] .modal-content-dark .modal-footer {
    border-color: #e2e8f0 !important;
}
html[data-theme="light"] .modal-content-dark label,
html[data-theme="light"] .modal-content-dark .form-label {
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 0.83rem !important;
}
html[data-theme="light"] .modal-content-dark .modal-title {
    color: #0f172a !important;
}
html[data-theme="light"] .modal-content-dark .text-muted,
html[data-theme="light"] .modal-content-dark small,
html[data-theme="light"] .modal-content-dark .form-text {
    color: #475569 !important;
}
html[data-theme="light"] .modal-content-dark .form-check {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}
html[data-theme="light"] .modal-content-dark .form-check-label {
    color: #0f172a !important;
}
html[data-theme="light"] .modal-content-dark .form-control-custom,
html[data-theme="light"] .modal-content-dark input.form-control-custom,
html[data-theme="light"] .modal-content-dark select.form-control-custom,
html[data-theme="light"] .modal-content-dark textarea.form-control-custom {
    background-color: #ffffff !important;
    border: 1px solid #94a3b8 !important;
    color: #0f172a !important;
}
html[data-theme="light"] .modal-content-dark .form-control-custom:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25) !important;
}
html[data-theme="light"] .modal-content-dark code {
    background: rgba(14, 165, 233, 0.12) !important;
    color: #0369a1 !important;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}
html[data-theme="light"] .btn-close-white,
html[data-theme="light"] .modal-content-dark .btn-close-white {
    filter: none !important;
    opacity: 0.8;
}
html[data-theme="light"] .btn-close-white:hover,
html[data-theme="light"] .modal-content-dark .btn-close-white:hover {
    opacity: 1;
}