/* ==============================================================
   NOVA-PBX - FEUILLE DE STYLE & THÈME CLAIR (WHITE MODE / WITMOD)
   Alternative 3CX moderne avec support White Mode & Dark Mode
   ============================================================== */

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* ==============================================================
   MODE BLANC / CLAIR (WITMOD) PAR DÉFAUT
   ============================================================== */
html.witmod, 
html.witmod body {
    background-color: #f8fafc !important; /* Fond gris ultra-clair */
    color: #1e293b !important; /* Texte sombre lisible */
}

html.witmod ::-webkit-scrollbar-track {
    background: #f1f5f9;
}
html.witmod ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}
html.witmod ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Cartes, conteneurs, barres de navigation et headers */
html.witmod header,
html.witmod aside,
html.witmod nav,
html.witmod .bg-slate-900,
html.witmod .bg-slate-800,
html.witmod .bg-slate-950 {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #1e293b !important;
}

/* Arrière-plans secondaires et hover */
html.witmod .bg-slate-950\/70,
html.witmod .bg-slate-950\/80,
html.witmod .bg-slate-900\/50,
html.witmod .bg-slate-800\/60,
html.witmod .bg-slate-800\/50,
html.witmod .bg-slate-800\/40,
html.witmod .bg-slate-800\/80,
html.witmod .bg-slate-800\/90 {
    background-color: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
}

/* Bordures douces */
html.witmod .border-slate-800,
html.witmod .border-slate-700,
html.witmod .border-slate-700\/60,
html.witmod .border-slate-600 {
    border-color: #e2e8f0 !important;
}

/* Titres et textes */
html.witmod .text-white,
html.witmod h1,
html.witmod h2,
html.witmod h3,
html.witmod h4,
html.witmod h5 {
    color: #0f172a !important; /* Noir / ardoise foncé */
}

html.witmod .text-slate-400,
html.witmod .text-slate-500 {
    color: #64748b !important;
}

html.witmod .text-slate-300,
html.witmod .text-slate-200,
html.witmod .text-slate-100 {
    color: #334155 !important;
}

/* Formulaires, inputs, selects, textareas */
html.witmod input:not([type="checkbox"]):not([type="radio"]),
html.witmod select,
html.witmod textarea {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

html.witmod input:focus,
html.witmod select:focus,
html.witmod textarea:focus {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

html.witmod input::placeholder,
html.witmod textarea::placeholder {
    color: #94a3b8 !important;
}

/* Boutons secondaires gris */
html.witmod .bg-slate-700,
html.witmod .bg-slate-750 {
    background-color: #e2e8f0 !important;
    color: #1e293b !important;
}
html.witmod .bg-slate-700:hover,
html.witmod .bg-slate-750:hover {
    background-color: #cbd5e1 !important;
    color: #0f172a !important;
}

/* Tableaux */
html.witmod table thead,
html.witmod table thead tr {
    background-color: #f8fafc !important;
    color: #475569 !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

html.witmod table tbody tr {
    background-color: #ffffff !important;
    border-color: #f1f5f9 !important;
}

html.witmod table tbody tr:hover {
    background-color: #f8fafc !important;
}

html.witmod .divide-slate-800 > :not([hidden]) ~ :not([hidden]) {
    border-color: #e2e8f0 !important;
}

/* Softphone Webclient en White Mode */
html.witmod #softphone-panel {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.06) !important;
}

html.witmod #dialer-screen {
    background-color: #f8fafc !important;
    color: #0f172a !important;
    border-color: #e2e8f0 !important;
}

html.witmod .grid button {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

html.witmod .grid button:hover {
    background-color: #f1f5f9 !important;
}

html.witmod .grid button span.font-bold {
    color: #0f172a !important;
}

/* Modales en White Mode */
html.witmod .fixed.inset-0 > div.bg-slate-800 {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

/* Badges cyan/bleu/émeraude avec contraste parfait */
html.witmod .bg-cyan-950,
html.witmod .bg-cyan-500\/10,
html.witmod .bg-cyan-500\/20 {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
    border-color: #bae6fd !important;
}

html.witmod .bg-emerald-500\/10,
html.witmod .bg-emerald-500\/20 {
    background-color: #dcfce7 !important;
    color: #15803d !important;
    border-color: #bbf7d0 !important;
}

html.witmod .bg-amber-500\/10,
html.witmod .bg-amber-500\/20 {
    background-color: #fef3c7 !important;
    color: #b45309 !important;
    border-color: #fde68a !important;
}

html.witmod .bg-rose-500\/10,
html.witmod .bg-rose-500\/20 {
    background-color: #ffe4e6 !important;
    color: #be123c !important;
    border-color: #fecdd3 !important;
}

html.witmod .bg-purple-950\/60,
html.witmod .bg-purple-500\/20 {
    background-color: #f3e8ff !important;
    color: #7e22ce !important;
    border-color: #e9d5ff !important;
}
