/* Override estilos inline para modo oscuro */

/* 1. Contenedores principales con bg-white */
body[data-theme="1E202D"] .bg-white,
body.theme-1E202D .bg-white {
    background-color: #252932 !important;
}

/* 2. Cards de abogados - override estilos inline */
body[data-theme="1E202D"] .lawyer-card,
body.theme-1E202D .lawyer-card {
    background: #252932 !important;
    border: 1px solid #2f3541 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

body[data-theme="1E202D"] .lawyer-card:hover,
body.theme-1E202D .lawyer-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important;
}

/* 3. Widget JUS - override estilos inline */
body[data-theme="1E202D"] .widget-container-card,
body[data-theme="1E202D"] .jus-card,
body.theme-1E202D .widget-container-card,
body.theme-1E202D .jus-card {
    background: #252932 !important;
    border: 1px solid #2f3541 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

body[data-theme="1E202D"] .jus-card:hover,
body.theme-1E202D .jus-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important;
}

/* 4. Títulos de widgets */
body[data-theme="1E202D"] .widget-header h4,
body.theme-1E202D .widget-header h4 {
    color: #ffffff !important;
}

/* 5. Texto en cards de abogados */
body[data-theme="1E202D"] .lawyer-info .info-row,
body.theme-1E202D .lawyer-info .info-row {
    color: #d6d5d5 !important;
    border-bottom: none !important; /* Remover líneas */
}

body[data-theme="1E202D"] .lawyer-info strong,
body.theme-1E202D .lawyer-info strong {
    color: #d6d5d5 !important;
}

/* 6. Valor del JUS */
body[data-theme="1E202D"] .jus-value,
body.theme-1E202D .jus-value {
    background: #1a472a !important; /* Verde oscuro */
    border-left: 4px solid #83c340 !important;
}

body[data-theme="1E202D"] .jus-value .currency,
body.theme-1E202D .jus-value .currency {
    color: #83c340 !important;
}

body[data-theme="1E202D"] .jus-value .amount,
body.theme-1E202D .jus-value .amount {
    color: #83c340 !important;
}

/* 7. Detalles del JUS */
body[data-theme="1E202D"] .jus-details .detail-row,
body.theme-1E202D .jus-details .detail-row {
    color: #d6d5d5 !important;
}

body[data-theme="1E202D"] .jus-details strong,
body.theme-1E202D .jus-details strong {
    color: #d6d5d5 !important;
}

/* 8. Enlaces */
body[data-theme="1E202D"] .jus-details a,
body.theme-1E202D .jus-details a {
    color: #5b73e8 !important;
}

body[data-theme="1E202D"] .jus-details a:hover,
body.theme-1E202D .jus-details a:hover {
    color: #2850f0 !important;
}

/* 9. Botones */
body[data-theme="1E202D"] .copy-btn,
body.theme-1E202D .copy-btn {
    background: #495057 !important;
}

body[data-theme="1E202D"] .copy-btn:hover,
body.theme-1E202D .copy-btn:hover {
    background: #343a40 !important;
}

body[data-theme="1E202D"] .refresh-btn,
body.theme-1E202D .refresh-btn {
    background: #138496 !important;
}

body[data-theme="1E202D"] .refresh-btn:hover,
body.theme-1E202D .refresh-btn:hover {
    background: #0c5460 !important;
}

/* 10. Override cualquier estilo con background white */
body[data-theme="1E202D"] [style*="background: white"],
body[data-theme="1E202D"] [style*="background:white"],
body[data-theme="1E202D"] [style*="background-color: white"],
body[data-theme="1E202D"] [style*="background-color:white"],
body.theme-1E202D [style*="background: white"],
body.theme-1E202D [style*="background:white"],
body.theme-1E202D [style*="background-color: white"],
body.theme-1E202D [style*="background-color:white"] {
    background: #252932 !important;
}