/**
 * DaisyUI Colors Override - Marhoani Theme
 * Asegura que DaisyUI use la paleta de colores correcta
 * Sobreescribe cualquier valor por defecto que pueda estar usando DaisyUI
 */

:root {
    /* Paleta Marhoani - Valores RGB para DaisyUI */
    --primary: 30 58 138;           /* #1E3A8A - Azul */
    --primary-focus: 26 47 94;      /* #1a2f5e - Azul oscuro */
    --primary-content: 255 255 255; /* #FFFFFF - Blanco */
    
    --secondary: 249 115 22;        /* #F97316 - Naranja */
    --secondary-focus: 217 93 10;   /* #d95d0a - Naranja oscuro */
    --secondary-content: 255 255 255; /* #FFFFFF - Blanco */
    
    --accent: 16 185 129;           /* #10B981 - Verde */
    --accent-focus: 5 150 105;      /* #059669 - Verde oscuro */
    --accent-content: 255 255 255;  /* #FFFFFF - Blanco */
    
    --neutral: 51 65 85;            /* #334155 - Gris */
    --neutral-focus: 31 41 55;      /* #1f2937 - Gris oscuro */
    --neutral-content: 255 255 255; /* #FFFFFF - Blanco */
    
    --base-100: 255 255 255;        /* #FFFFFF - Blanco */
    --base-200: 243 244 246;        /* #F3F4F6 - Gris claro */
    --base-300: 229 231 235;        /* #E5E7EB - Gris más claro */
    --base-content: 51 65 85;       /* #334155 - Gris oscuro */
    
    --info: 141 200 232;            /* #8DC8E8 - Azul claro */
    --success: 16 185 129;          /* #10B981 - Verde (éxito) */
    --warning: 249 115 22;          /* #F97316 - Naranja (advertencia) */
    --error: 255 163 139;           /* #FFA38B - Coral/Rosa (error) */
}

/* Tema Marhoani para DaisyUI */
[data-theme="marhoani"] {
    --p: 30 58 138;
    --pf: 26 47 94;
    --pc: 255 255 255;
    
    --s: 249 115 22;
    --sf: 217 93 10;
    --sc: 255 255 255;
    
    --a: 16 185 129;
    --af: 5 150 105;
    --ac: 255 255 255;
    
    --n: 51 65 85;
    --nf: 31 41 55;
    --nc: 255 255 255;
    
    --b1: 255 255 255;
    --b2: 243 244 246;
    --b3: 229 231 235;
    --bc: 51 65 85;
    
    --in: 141 200 232;
    --su: 16 185 129;
    --wa: 249 115 22;
    --er: 255 163 139;
}

/* Asegurar que DaisyUI use los colores correctos en todos los elementos */
html[data-theme="marhoani"],
body[data-theme="marhoani"] {
    color-scheme: light;
}

/* Botones primarios */
.btn-primary {
    background-color: rgb(30 58 138 / 1) !important;
    border-color: rgb(30 58 138 / 1) !important;
    color: rgb(255 255 255 / 1) !important;
}

.btn-primary:hover {
    background-color: rgb(26 47 94 / 1) !important;
    border-color: rgb(26 47 94 / 1) !important;
}

/* Botones secundarios */
.btn-secondary {
    background-color: rgb(249 115 22 / 1) !important;
    border-color: rgb(249 115 22 / 1) !important;
    color: rgb(255 255 255 / 1) !important;
}

.btn-secondary:hover {
    background-color: rgb(217 93 10 / 1) !important;
    border-color: rgb(217 93 10 / 1) !important;
}

/* Botones accent */
.btn-accent {
    background-color: rgb(16 185 129 / 1) !important;
    border-color: rgb(16 185 129 / 1) !important;
    color: rgb(255 255 255 / 1) !important;
}

.btn-accent:hover {
    background-color: rgb(5 150 105 / 1) !important;
    border-color: rgb(5 150 105 / 1) !important;
}

/* Badges */
.badge-primary {
    background-color: rgb(30 58 138 / 1) !important;
    color: rgb(255 255 255 / 1) !important;
}

.badge-secondary {
    background-color: rgb(249 115 22 / 1) !important;
    color: rgb(255 255 255 / 1) !important;
}

.badge-accent {
    background-color: rgb(16 185 129 / 1) !important;
    color: rgb(255 255 255 / 1) !important;
}

.badge-success {
    background-color: rgb(16 185 129 / 1) !important;
    color: rgb(255 255 255 / 1) !important;
}

/* Cards */
.card {
    background-color: rgb(255 255 255 / 1) !important;
    color: rgb(51 65 85 / 1) !important;
}

/* Navbar */
.navbar {
    background-color: rgb(255 255 255 / 0.9) !important;
    color: rgb(51 65 85 / 1) !important;
}

/* Footer */
.footer {
    background-color: rgb(30 58 138 / 1) !important;
    color: rgb(255 255 255 / 1) !important;
    background-image: linear-gradient(to right, rgb(30 58 138), rgb(51 65 85), rgb(30 58 138)) !important;
}

.footer-title {
    color: rgb(249 115 22 / 1) !important;
    font-weight: 600 !important;
}

.footer a {
    color: rgb(255 255 255 / 0.8) !important;
}

.footer a:hover {
    color: rgb(255 255 255 / 1) !important;
}

.footer-vertical {
    background-color: transparent !important;
    color: inherit !important;
}

/* Dividers */
.divider {
    background-color: rgb(229 231 235 / 1) !important;
}

.divider-neutral {
    background-color: rgb(229 231 235 / 1) !important;
}

/* Focus states */
:focus-visible {
    outline-color: rgb(30 58 138 / 1) !important;
}

/* Transiciones suaves */
button, a, .btn, .card, .navbar, .link {
    transition: all 0.2s ease-in-out;
}
