/*
 * WHAPI Design Refresh — footer-overrides
 *
 * Acest bloc se incarca in @stack('footer'), dupa toate stylesheet-urile
 * din <head> (inclusiv custom-styles admin). Pentru declaratii cu
 * aceeasi specificitate, ultima declaratie din document castiga —
 * deci override-urile de mai jos suprascriu valorile din app.css si
 * culorile implicite admin fara a folosi !important pe culori.
 *
 * Paleta: Inter + WhatsApp Teal Green (#00a884) + slate neutrals
 */

/* ============================================================
   CSS VARIABLES — culori noi default
   ============================================================ */
:root {
    --lw-primary-color:     #00a884;   /* WhatsApp modern teal-green */
    --lw-secondary-color:   #64748b;   /* slate-500 */
    --lw-light-grey-color:  #f1f5f9;   /* slate-100 */
}

/* ============================================================
   CULORI TEXT — link-uri si titluri de pagina
   Suprascriu valorile implicite blue ale WhatsJet si fallback-ul
   Bootstrap (#007bff). Administratorul poate schimba culoarea
   din panoul de setari, dar daca nu a setat nimic, se aplica
   paleta whapi.ro (verde teal).
   ============================================================ */

a {
    color: #00a884;
}

a:hover {
    color: #007a63;
}

.lw-page-title,
a.lw-page-title {
    color: #00a884;
}

.lw-page-title:hover {
    color: #007a63;
}

/* ============================================================
   BACKGROUND — pagina autentificata
   Specificitate body.lw-authenticated-page (0,1,1) bate
   html > body (0,0,2) din custom-styles, deci castiga chiar
   si cu !important pe acea regula.
   ============================================================ */

html:not([lw-theme-mode="dark"]) body.lw-authenticated-page {
    background-color: #f1f5f9 !important;  /* slate-100 — curat, neutru */
}
/* doar in tema deschisa: in cea inchisa fundalul gri deschis facea titlurile albe ale paginilor invizibile */
@media (prefers-color-scheme: dark) {
    html[lw-theme-mode="system_default"] body.lw-authenticated-page { background-color: #0f172a !important; }
}

/* ============================================================
   BACKGROUND — pagina guest (login/register)
   ============================================================ */

body.lw-guest-page {
    background: linear-gradient(145deg, #f8fafc 0%, #eef2ff 45%, #f0fdf4 100%) !important;
}

/* ============================================================
   NAVBAR ACTIVE — indicatorul activ din sidebar
   Pastreaza verde brand in loc de albastrul default WhatsJet
   ============================================================ */

.nav-link.active {
    background-color: rgba(0,168,132,.10) !important;
    color: #00a884 !important;
}

.nav-link.active .fa,
.nav-link.active .fas,
.nav-link.active .fab {
    color: #00a884 !important;
}

/* ============================================================
   BADGE + STATUS INDICATORS
   ============================================================ */

/* Text muted — mai cald si mai lizibil */
.text-muted {
    color: #94a3b8 !important;   /* slate-400 */
}

/* ============================================================
   TABELE — header culoare
   ============================================================ */

.table thead th,
.dataTables_wrapper .table.dataTable thead th {
    color: #94a3b8;
}

/* ============================================================
   CARD STATS — cifra mare
   ============================================================ */

.card-stats .h2,
.card-stats .font-weight-bold {
    color: #0f172a;   /* slate-900 — contrast maxim pe fond alb */
}

/* ============================================================
   FORM — placeholder vizibil (contrast suficient pe fond alb)
   #64748b = slate-500 (contrast 5.9:1 pe alb — trece WCAG AA)
   ============================================================ */

::placeholder {
    color: #64748b !important;
    opacity: 1;
}

:-ms-input-placeholder { color: #64748b; }
::-ms-input-placeholder { color: #64748b; }

/* ============================================================
   CONTRAST — link-uri pe pagina de login (fundal gradient deschis)
   #00a884 pe #f8fafc = 3.76:1 (fail AA). Folosim #007a63 = 5.6:1
   ============================================================ */

body.lw-guest-page a,
body.lw-guest-page .lw-page-title,
body.lw-guest-page a.lw-page-title {
    color: #007a63 !important;
}
body.lw-guest-page a:hover {
    color: #005c4b !important;
}

/* ============================================================
   TOP NAVBAR ALB — stil SaaS modern
   custom-styles picteaza #navbar-main cu culoarea primara si text
   alb (!important). Aici, fiind dupa el in document, il facem alb
   cu text inchis; sidebar alb + navbar alb = suprafata continua.
   ============================================================ */

#navbar-main {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(15,23,42,.04) !important;
    color: #0f172a !important;
}

#navbar-main .text-white,
#navbar-main .h3,
#navbar-main .h4,
#navbar-main a.h4 {
    color: #0f172a !important;
}

#navbar-main .navbar-nav .nav-link {
    color: #475569 !important;
}

#navbar-main .navbar-nav .nav-link:hover {
    color: #00a884 !important;
}

/* ============================================================
   BADGE-URI SOFT — fundal pastel + text inchis din aceeasi familie
   ============================================================ */

.badge.badge-success   { background-color: #d1fae5 !important; color: #047857 !important; }
.badge.badge-primary   { background-color: rgba(0,168,132,.12) !important; color: #00795f !important; }
.badge.badge-danger    { background-color: #fee2e2 !important; color: #b91c1c !important; }
.badge.badge-warning   { background-color: #fef3c7 !important; color: #b45309 !important; }
.badge.badge-info      { background-color: #e0f2fe !important; color: #0369a1 !important; }
.badge.badge-secondary { background-color: #f1f5f9 !important; color: #475569 !important; }
.badge.badge-dark      { background-color: #e2e8f0 !important; color: #1e293b !important; }
.badge.badge-default   { background-color: #e2e8f0 !important; color: #334155 !important; }
.badge.badge-light     { background-color: #f1f5f9 !important; color: #64748b !important; }

/* ============================================================
   BUTOANE SOFT IN TABELE — actiunile secundare (Edit/Delete etc.)
   devin pastel; actiunea principala (success/primary) ramane plina
   ============================================================ */

.table .btn.btn-danger {
    background-color: #fee2e2 !important;
    border-color: transparent !important;
    color: #dc2626 !important;
    box-shadow: none !important;
}

.table .btn.btn-danger:hover {
    background-color: #fecaca !important;
    border-color: transparent !important;
    color: #b91c1c !important;
}

.table .btn.btn-dark,
.table .btn.btn-default,
.table .btn.btn-secondary {
    background-color: #f1f5f9 !important;
    border-color: transparent !important;
    color: #334155 !important;
    box-shadow: none !important;
}

.table .btn.btn-dark:hover,
.table .btn.btn-default:hover,
.table .btn.btn-secondary:hover {
    background-color: #e2e8f0 !important;
    border-color: transparent !important;
    color: #0f172a !important;
}

/* ============================================================
   STAT CARDS — iconite in cercuri pastel in loc de plin + shadow
   ============================================================ */

.card.card-stats .icon-shape {
    box-shadow: none !important;
}

.card.card-stats .icon-shape.bg-primary  { background-color: rgba(0,168,132,.12) !important; }
.card.card-stats .icon-shape.bg-primary.text-white  { color: #00a884 !important; }
.card.card-stats .icon-shape.bg-success  { background-color: #d1fae5 !important; }
.card.card-stats .icon-shape.bg-success.text-white  { color: #059669 !important; }
.card.card-stats .icon-shape.bg-danger   { background-color: #fee2e2 !important; }
.card.card-stats .icon-shape.bg-danger.text-white   { color: #dc2626 !important; }
.card.card-stats .icon-shape.bg-warning  { background-color: #fef3c7 !important; }
.card.card-stats .icon-shape.bg-warning.text-white  { color: #d97706 !important; }
.card.card-stats .icon-shape.bg-info     { background-color: #e0f2fe !important; }
.card.card-stats .icon-shape.bg-info.text-white     { color: #0284c7 !important; }

/* ============================================================
   DARK THEME — variantele intunecate ale tuturor celor de mai sus
   ============================================================ */

[lw-theme-mode="dark"] .card-stats .h2,
[lw-theme-mode="dark"] .card-stats .font-weight-bold {
    color: #f1f5f9;
}

[lw-theme-mode="dark"] ::placeholder {
    color: rgba(255,255,255,.45) !important;
}

/* Navbar pe dark — slate-800, text deschis */
[lw-theme-mode="dark"] #navbar-main {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    border-bottom: 1px solid #334155 !important;
    color: #f1f5f9 !important;
}

[lw-theme-mode="dark"] #navbar-main .text-white,
[lw-theme-mode="dark"] #navbar-main .h3,
[lw-theme-mode="dark"] #navbar-main .h4,
[lw-theme-mode="dark"] #navbar-main a.h4 {
    color: #f1f5f9 !important;
}

[lw-theme-mode="dark"] #navbar-main .navbar-nav .nav-link {
    color: #cbd5e1 !important;
}

[lw-theme-mode="dark"] #navbar-main .navbar-nav .nav-link:hover {
    color: #34d399 !important;
}

/* Badge-uri soft pe dark — translucide */
[lw-theme-mode="dark"] .badge.badge-success   { background-color: rgba(16,185,129,.16) !important; color: #34d399 !important; }
[lw-theme-mode="dark"] .badge.badge-primary   { background-color: rgba(0,168,132,.2) !important; color: #2dd4a8 !important; }
[lw-theme-mode="dark"] .badge.badge-danger    { background-color: rgba(239,68,68,.16) !important; color: #f87171 !important; }
[lw-theme-mode="dark"] .badge.badge-warning   { background-color: rgba(245,158,11,.16) !important; color: #fbbf24 !important; }
[lw-theme-mode="dark"] .badge.badge-info      { background-color: rgba(14,165,233,.16) !important; color: #38bdf8 !important; }
[lw-theme-mode="dark"] .badge.badge-secondary { background-color: rgba(148,163,184,.14) !important; color: #cbd5e1 !important; }
[lw-theme-mode="dark"] .badge.badge-dark      { background-color: rgba(148,163,184,.14) !important; color: #e2e8f0 !important; }
[lw-theme-mode="dark"] .badge.badge-default   { background-color: rgba(148,163,184,.14) !important; color: #e2e8f0 !important; }
[lw-theme-mode="dark"] .badge.badge-light     { background-color: rgba(148,163,184,.14) !important; color: #cbd5e1 !important; }

/* Butoane soft in tabele pe dark */
[lw-theme-mode="dark"] .table .btn.btn-danger {
    background-color: rgba(239,68,68,.15) !important;
    color: #f87171 !important;
}

[lw-theme-mode="dark"] .table .btn.btn-danger:hover {
    background-color: rgba(239,68,68,.25) !important;
    color: #fca5a5 !important;
}

[lw-theme-mode="dark"] .table .btn.btn-dark,
[lw-theme-mode="dark"] .table .btn.btn-default,
[lw-theme-mode="dark"] .table .btn.btn-secondary {
    background-color: rgba(148,163,184,.12) !important;
    color: #cbd5e1 !important;
}

[lw-theme-mode="dark"] .table .btn.btn-dark:hover,
[lw-theme-mode="dark"] .table .btn.btn-default:hover,
[lw-theme-mode="dark"] .table .btn.btn-secondary:hover {
    background-color: rgba(148,163,184,.22) !important;
    color: #f1f5f9 !important;
}

/* Iconite stat cards pe dark — translucide */
[lw-theme-mode="dark"] .card.card-stats .icon-shape.bg-primary  { background-color: rgba(0,168,132,.18) !important; }
[lw-theme-mode="dark"] .card.card-stats .icon-shape.bg-primary.text-white  { color: #2dd4a8 !important; }
[lw-theme-mode="dark"] .card.card-stats .icon-shape.bg-success  { background-color: rgba(16,185,129,.18) !important; }
[lw-theme-mode="dark"] .card.card-stats .icon-shape.bg-success.text-white  { color: #34d399 !important; }
[lw-theme-mode="dark"] .card.card-stats .icon-shape.bg-danger   { background-color: rgba(239,68,68,.18) !important; }
[lw-theme-mode="dark"] .card.card-stats .icon-shape.bg-danger.text-white   { color: #f87171 !important; }
[lw-theme-mode="dark"] .card.card-stats .icon-shape.bg-warning  { background-color: rgba(245,158,11,.18) !important; }
[lw-theme-mode="dark"] .card.card-stats .icon-shape.bg-warning.text-white  { color: #fbbf24 !important; }
[lw-theme-mode="dark"] .card.card-stats .icon-shape.bg-info     { background-color: rgba(14,165,233,.18) !important; }
[lw-theme-mode="dark"] .card.card-stats .icon-shape.bg-info.text-white     { color: #38bdf8 !important; }

/* DataTables toolbar pe dark */
[lw-theme-mode="dark"] .dataTables_wrapper .dataTables_filter input,
[lw-theme-mode="dark"] .dataTables_wrapper .dataTables_length select {
    background-color: rgba(15,23,42,.4) !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

[lw-theme-mode="dark"] .dataTables_wrapper .dataTables_filter label,
[lw-theme-mode="dark"] .dataTables_wrapper .dataTables_length label {
    color: #94a3b8 !important;
}

[lw-theme-mode="dark"] .pagination .page-link {
    color: #cbd5e1;
    background-color: transparent !important;
}

[lw-theme-mode="dark"] .pagination .page-item.disabled .page-link {
    color: #475569 !important;
}

/* System default + preferinta OS dark: aceleasi reguli ca tema dark */
@media (prefers-color-scheme: dark) {
    [lw-theme-mode="system_default"] #navbar-main {
        background-color: #1e293b !important;
        border-color: #334155 !important;
        border-bottom: 1px solid #334155 !important;
        color: #f1f5f9 !important;
    }

    [lw-theme-mode="system_default"] #navbar-main .text-white,
    [lw-theme-mode="system_default"] #navbar-main .h3,
    [lw-theme-mode="system_default"] #navbar-main .h4,
    [lw-theme-mode="system_default"] #navbar-main a.h4 {
        color: #f1f5f9 !important;
    }

    [lw-theme-mode="system_default"] #navbar-main .navbar-nav .nav-link {
        color: #cbd5e1 !important;
    }

    [lw-theme-mode="system_default"] .badge.badge-success   { background-color: rgba(16,185,129,.16) !important; color: #34d399 !important; }
    [lw-theme-mode="system_default"] .badge.badge-primary   { background-color: rgba(0,168,132,.2) !important; color: #2dd4a8 !important; }
    [lw-theme-mode="system_default"] .badge.badge-danger    { background-color: rgba(239,68,68,.16) !important; color: #f87171 !important; }
    [lw-theme-mode="system_default"] .badge.badge-warning   { background-color: rgba(245,158,11,.16) !important; color: #fbbf24 !important; }
    [lw-theme-mode="system_default"] .badge.badge-info      { background-color: rgba(14,165,233,.16) !important; color: #38bdf8 !important; }
    [lw-theme-mode="system_default"] .badge.badge-secondary { background-color: rgba(148,163,184,.14) !important; color: #cbd5e1 !important; }
    [lw-theme-mode="system_default"] .badge.badge-dark      { background-color: rgba(148,163,184,.14) !important; color: #e2e8f0 !important; }
    [lw-theme-mode="system_default"] .badge.badge-default   { background-color: rgba(148,163,184,.14) !important; color: #e2e8f0 !important; }
    [lw-theme-mode="system_default"] .badge.badge-light     { background-color: rgba(148,163,184,.14) !important; color: #cbd5e1 !important; }

    [lw-theme-mode="system_default"] .table .btn.btn-danger {
        background-color: rgba(239,68,68,.15) !important;
        color: #f87171 !important;
    }

    [lw-theme-mode="system_default"] .table .btn.btn-dark,
    [lw-theme-mode="system_default"] .table .btn.btn-default,
    [lw-theme-mode="system_default"] .table .btn.btn-secondary {
        background-color: rgba(148,163,184,.12) !important;
        color: #cbd5e1 !important;
    }

    [lw-theme-mode="system_default"] .card.card-stats .icon-shape.bg-primary  { background-color: rgba(0,168,132,.18) !important; }
    [lw-theme-mode="system_default"] .card.card-stats .icon-shape.bg-primary.text-white  { color: #2dd4a8 !important; }
    [lw-theme-mode="system_default"] .card.card-stats .icon-shape.bg-success  { background-color: rgba(16,185,129,.18) !important; }
    [lw-theme-mode="system_default"] .card.card-stats .icon-shape.bg-success.text-white  { color: #34d399 !important; }
    [lw-theme-mode="system_default"] .card.card-stats .icon-shape.bg-danger   { background-color: rgba(239,68,68,.18) !important; }
    [lw-theme-mode="system_default"] .card.card-stats .icon-shape.bg-danger.text-white   { color: #f87171 !important; }
    [lw-theme-mode="system_default"] .card.card-stats .icon-shape.bg-warning  { background-color: rgba(245,158,11,.18) !important; }
    [lw-theme-mode="system_default"] .card.card-stats .icon-shape.bg-warning.text-white  { color: #fbbf24 !important; }
    [lw-theme-mode="system_default"] .card.card-stats .icon-shape.bg-info     { background-color: rgba(14,165,233,.18) !important; }
    [lw-theme-mode="system_default"] .card.card-stats .icon-shape.bg-info.text-white     { color: #38bdf8 !important; }

    [lw-theme-mode="system_default"] .dataTables_wrapper .dataTables_filter input,
    [lw-theme-mode="system_default"] .dataTables_wrapper .dataTables_length select {
        background-color: rgba(15,23,42,.4) !important;
        border-color: #334155 !important;
        color: #e2e8f0 !important;
    }

    [lw-theme-mode="system_default"] .pagination .page-link {
        color: #cbd5e1;
        background-color: transparent !important;
    }
}

/* ============================================================
   LIZIBILITATE (27 oct 2026)
   Contrast minim pentru text (WCAG AA: 4.5:1, 3:1 la text mare) peste culorile temei
   setate din admin. Gasite cu un audit automat de contrast pe toate paginile admin si client,
   in tema deschisa si inchisa. Culorile „light” / „secondary” / „muted” ale temei sunt tonuri
   medii, iar generatorul de stil pune text alb pe ele - de aici textele ilizibile.
   ============================================================ */

/* text secundar: gri lizibil (slate-500, 4.8:1 pe alb) in locul slate-400 (2.6:1) */
.text-muted { color: #64748b !important; }
.table thead th,
.dataTables_wrapper .table.dataTable thead th,
.dataTables_wrapper .dataTables_info { color: #64748b; }
.page-item.disabled .page-link { color: #94a3b8 !important; }
.input-group-text { color: #475569; }
.custom-control-label { color: #334155; }

/* link-uri si text colorat: aceleasi nuante, mai inchise, ca sa se citeasca pe alb */
a { color: #00806a; }
a:hover { color: #00614f; }
.text-primary { color: #00806a !important; }
.text-success, .text-green { color: #047857 !important; }
.text-info { color: #0e7490 !important; }
.text-warning { color: #b45309 !important; }
code { color: #be185d; }

/* componentele „light”: fundal neutru deschis cu text inchis (nu text alb pe verde-gri) */
.btn.btn-light, .btn.btn-light:focus {
    background-color: #eef3f0 !important; border-color: #d6e0da !important; color: #1f2d27 !important;
}
.btn.btn-light:hover, .btn.btn-light:active {
    background-color: #e1e9e4 !important; border-color: #c9d6ce !important; color: #1f2d27 !important;
}
.btn.btn-outline-light { color: #475569 !important; border-color: #cbd5e1 !important; }
.btn.btn-outline-light:hover { background-color: #f1f5f9 !important; color: #1f2d27 !important; }
.alert.alert-light { background-color: #f3f6f4 !important; border-color: #e2e8e4 !important; color: #1f2d27 !important; }
.badge.badge-light { background-color: #eef3f0 !important; color: #1f2d27 !important; }
.list-group-item.list-group-item-light, .card.card-light, .table.table-light {
    background-color: #f3f6f4 !important; color: #1f2d27 !important;
}

/* text pe suprafete colorate (alerte, fundaluri pline): mostenesc culoarea suprafetei */
.alert .text-muted,
.bg-primary .text-muted, .bg-info .text-muted, .bg-success .text-muted, .bg-danger .text-muted,
.bg-warning .text-muted, .bg-dark .text-muted, .bg-secondary .text-muted,
[class*="bg-gradient-"] .text-muted { color: inherit !important; opacity: .85; }
.alert code,
.bg-primary code, .bg-info code, .bg-success code, .bg-danger code, .bg-dark code, .bg-secondary code {
    color: inherit; background-color: rgba(255,255,255,.2); padding: 0 .3em; border-radius: 4px;
}
.alert a:not(.btn), .bg-info a:not(.btn), .bg-danger a:not(.btn), .bg-dark a:not(.btn) {
    color: inherit; text-decoration: underline; font-weight: 600;
}
.alert-info .badge, .bg-info .badge { background-color: rgba(255,255,255,.92) !important; color: #0f172a !important; }

/* chat: starea ferestrei de raspuns pe bara verde inchisa */
.lw-whatsapp-chat-window .user-bar .text-success,
.lw-whatsapp-chat-window .user-bar .status { color: #d1fae5 !important; }

/* panou neutru si rand de grup in tabel (inlocuiesc bg-secondary folosit ca fundal deschis) */
.lw-soft-panel { background-color: #f3f6f4; border: 1px solid #e2e8e4; border-radius: 10px; color: #1f2d27; }
.lw-soft-panel h1, .lw-soft-panel h2, .lw-soft-panel h3, .lw-soft-panel h4, .lw-soft-panel h5 { color: #15201b; }
.table tr.lw-group-row > td, .table tr.lw-group-row > th { background-color: #eef3f0 !important; color: #1f2d27 !important; border-top: 1px solid #dfe7e2; }
.table tr.lw-group-row strong { color: #14532d; }

/* intariri: reguli din CSS-ul de baza cu specificitate mai mare */
.table thead th, .table .thead-light th, .table thead.thead-light th,
.dataTables_wrapper .table.dataTable thead th, .card-stats .card-title, .card .card-title.text-muted { color: #64748b !important; }
.pagination .page-item.disabled .page-link, .dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link { color: #94a3b8 !important; }
/* fundaluri pline in tema deschisa: avertizare si info cu text alb lizibil */
.btn.btn-warning, .alert.alert-warning, .badge.badge-warning, .bg-warning { background-color: #b45309 !important; border-color: #b45309 !important; color: #fff !important; }
.btn.btn-warning:hover { background-color: #92400e !important; border-color: #92400e !important; }
.btn.btn-info, .alert.alert-info, .badge.badge-info, .bg-info { background-color: #0e7490 !important; border-color: #0e7490 !important; color: #fff !important; }
.btn.btn-info:hover { background-color: #155e75 !important; border-color: #155e75 !important; }
/* chat */
.lw-whatsapp-chat-window .metadata .time { color: rgba(0,0,0,.6); }
.lw-whatsapp-chat-block-container .nav-tabs .nav-link:not(.active) { color: #475569; }

.dataTables_wrapper .dataTables_info, .table td.dataTables_empty { color: #64748b !important; }
/* doar linkurile de pe bara verde; meniul derulant al barei are fond alb si isi pastreaza culorile */
.lw-whatsapp-chat-window .user-bar a:not(.dropdown-item), .lw-whatsapp-chat-window .user-bar .name { color: #ecfdf5 !important; }

/* tema inchisa (aleasa explicit) */
[lw-theme-mode="dark"] .text-muted { color: #a3b1c2 !important; }
[lw-theme-mode="dark"] .table thead th, [lw-theme-mode="dark"] .dataTables_wrapper .table.dataTable thead th {
    background-color: #1f2937 !important; color: #cbd5e1 !important;
}
[lw-theme-mode="dark"] .dataTables_wrapper .dataTables_info { color: #a3b1c2; }
[lw-theme-mode="dark"] .page-item.disabled .page-link { color: #94a3b8 !important; }
[lw-theme-mode="dark"] .custom-control-label, [lw-theme-mode="dark"] label { color: #cbd5e1; }
[lw-theme-mode="dark"] .text-default, [lw-theme-mode="dark"] a.text-default, [lw-theme-mode="dark"] .text-light { color: #e2e8f0 !important; }
[lw-theme-mode="dark"] code { color: #f9a8d4; }
[lw-theme-mode="dark"] .btn.btn-outline-secondary { color: #cbd5e1 !important; border-color: #64748b !important; }
[lw-theme-mode="dark"] .btn.btn-outline-secondary:hover { background-color: #334155 !important; color: #fff !important; }
/* fundaluri pline: nuante care tin text alb lizibil (culorile temei inchise sunt prea deschise pentru alb) */
[lw-theme-mode="dark"] .btn.btn-primary, [lw-theme-mode="dark"] .badge.badge-primary, [lw-theme-mode="dark"] .bg-primary, [lw-theme-mode="dark"] .nav-tabs .nav-link.active, [lw-theme-mode="dark"] .nav-pills .nav-link.active { background-color: #00806a !important; border-color: #00806a !important; color: #fff !important; }
[lw-theme-mode="dark"] .btn.btn-primary:hover { background-color: #006b58 !important; border-color: #006b58 !important; }
[lw-theme-mode="dark"] .btn.btn-success, [lw-theme-mode="dark"] .alert.alert-success, [lw-theme-mode="dark"] .badge.badge-success, [lw-theme-mode="dark"] .bg-success { background-color: #047857 !important; border-color: #047857 !important; color: #fff !important; }
[lw-theme-mode="dark"] .btn.btn-success:hover { background-color: #065f46 !important; border-color: #065f46 !important; }
[lw-theme-mode="dark"] .btn.btn-warning, [lw-theme-mode="dark"] .alert.alert-warning, [lw-theme-mode="dark"] .badge.badge-warning, [lw-theme-mode="dark"] .bg-warning { background-color: #b45309 !important; border-color: #b45309 !important; color: #fff !important; }
[lw-theme-mode="dark"] .btn.btn-warning:hover { background-color: #92400e !important; border-color: #92400e !important; }
[lw-theme-mode="dark"] .btn.btn-danger, [lw-theme-mode="dark"] .alert.alert-danger, [lw-theme-mode="dark"] .badge.badge-danger, [lw-theme-mode="dark"] .bg-danger { background-color: #b91c1c !important; border-color: #b91c1c !important; color: #fff !important; }
[lw-theme-mode="dark"] .btn.btn-danger:hover { background-color: #991b1b !important; border-color: #991b1b !important; }
[lw-theme-mode="dark"] .btn.btn-info, [lw-theme-mode="dark"] .alert.alert-info, [lw-theme-mode="dark"] .badge.badge-info, [lw-theme-mode="dark"] .bg-info { background-color: #0e7490 !important; border-color: #0e7490 !important; color: #fff !important; }
[lw-theme-mode="dark"] .btn.btn-dark, [lw-theme-mode="dark"] .alert.alert-dark, [lw-theme-mode="dark"] .badge.badge-dark, [lw-theme-mode="dark"] .bg-dark { background-color: #475569 !important; border-color: #475569 !important; color: #fff !important; }
[lw-theme-mode="dark"] .badge.badge-secondary { background-color: #475569 !important; color: #f1f5f9 !important; }
[lw-theme-mode="dark"] .badge.badge-light { background-color: #334155 !important; color: #e2e8f0 !important; }
[lw-theme-mode="dark"] .btn.btn-light, [lw-theme-mode="dark"] .btn.btn-light:focus { background-color: #334155 !important; border-color: #475569 !important; color: #f1f5f9 !important; }
[lw-theme-mode="dark"] .btn.btn-light:hover { background-color: #3f4d63 !important; color: #fff !important; }
[lw-theme-mode="dark"] .btn.btn-outline-light { color: #e2e8f0 !important; border-color: #64748b !important; }
[lw-theme-mode="dark"] .alert.alert-light { background-color: #1f2937 !important; border-color: #334155 !important; color: #e2e8f0 !important; }
[lw-theme-mode="dark"] .table-warning, [lw-theme-mode="dark"] .table-warning > td, [lw-theme-mode="dark"] .table-warning > th { background-color: rgba(245,158,11,.14) !important; color: inherit !important; }
[lw-theme-mode="dark"] .table-danger, [lw-theme-mode="dark"] .table-danger > td, [lw-theme-mode="dark"] .table-danger > th { background-color: rgba(239,68,68,.14) !important; color: inherit !important; }
[lw-theme-mode="dark"] .table-success, [lw-theme-mode="dark"] .table-success > td, [lw-theme-mode="dark"] .table-success > th { background-color: rgba(16,185,129,.14) !important; color: inherit !important; }
[lw-theme-mode="dark"] .table-info, [lw-theme-mode="dark"] .table-info > td, [lw-theme-mode="dark"] .table-info > th { background-color: rgba(14,116,144,.2) !important; color: inherit !important; }
[lw-theme-mode="dark"] pre { background-color: #0f172a; color: #e2e8f0; }
[lw-theme-mode="dark"] .lw-soft-panel { background-color: rgba(255,255,255,.05); border-color: rgba(255,255,255,.09); color: #e2e8f0; }
[lw-theme-mode="dark"] .lw-soft-panel h1, [lw-theme-mode="dark"] .lw-soft-panel h2, [lw-theme-mode="dark"] .lw-soft-panel h3, [lw-theme-mode="dark"] .lw-soft-panel h4, [lw-theme-mode="dark"] .lw-soft-panel h5 { color: #f1f5f9 !important; }
[lw-theme-mode="dark"] .table tr.lw-group-row > td, [lw-theme-mode="dark"] .table tr.lw-group-row > th { background-color: #243041 !important; color: #e2e8f0 !important; border-top-color: #334155; }
[lw-theme-mode="dark"] .table tr.lw-group-row strong { color: #86efac; }

[lw-theme-mode="dark"] a { color: #34d1a7; }
[lw-theme-mode="dark"] a:hover { color: #6ee7c4; }
[lw-theme-mode="dark"] .text-primary { color: #2dd4bf !important; }
[lw-theme-mode="dark"] .text-success, [lw-theme-mode="dark"] .text-green { color: #34d399 !important; }
[lw-theme-mode="dark"] .text-info { color: #38bdf8 !important; }
[lw-theme-mode="dark"] .text-warning { color: #fbbf24 !important; }
[lw-theme-mode="dark"] .input-group-text { color: #cbd5e1; }
[lw-theme-mode="dark"] .list-group-item.list-group-item-light, [lw-theme-mode="dark"] .card.card-light, [lw-theme-mode="dark"] .table.table-light { background-color: #1f2937 !important; color: #e2e8f0 !important; }

[lw-theme-mode="dark"] .table thead th, [lw-theme-mode="dark"] .table .thead-light th, [lw-theme-mode="dark"] .dataTables_wrapper .table.dataTable thead th { background-color: #1f2937 !important; color: #cbd5e1 !important; }
[lw-theme-mode="dark"] .card-stats .card-title, [lw-theme-mode="dark"] .card .card-title.text-muted { color: #a3b1c2 !important; }
[lw-theme-mode="dark"] .pagination .page-item.disabled .page-link, [lw-theme-mode="dark"] .dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link { color: #94a3b8 !important; }
[lw-theme-mode="dark"] .btn.btn-outline-primary.active, [lw-theme-mode="dark"] .btn.btn-outline-primary:active { background-color: #00806a !important; border-color: #00806a !important; color: #fff !important; }
[lw-theme-mode="dark"] .alert .text-muted, [lw-theme-mode="dark"] .bg-info .text-muted, [lw-theme-mode="dark"] .bg-primary .text-muted, [lw-theme-mode="dark"] .bg-success .text-muted, [lw-theme-mode="dark"] .bg-danger .text-muted, [lw-theme-mode="dark"] .bg-warning .text-muted, [lw-theme-mode="dark"] .bg-dark .text-muted { color: inherit !important; opacity: .85; }
[lw-theme-mode="dark"] .alert code, [lw-theme-mode="dark"] .bg-info code, [lw-theme-mode="dark"] .bg-primary code, [lw-theme-mode="dark"] .bg-success code, [lw-theme-mode="dark"] .bg-danger code, [lw-theme-mode="dark"] .bg-dark code { color: inherit; background-color: rgba(255,255,255,.18); }
[lw-theme-mode="dark"] .lw-whatsapp-preview .lw-whatsapp-buttons a, [lw-theme-mode="dark"] .lw-whatsapp-preview-message-container .card-footer .list-group-item a { color: #7dd3fc !important; }
[lw-theme-mode="dark"] .lw-whatsapp-chat-window .metadata .time { color: #b3b3b3; }
[lw-theme-mode="dark"] .lw-whatsapp-chat-block-container .nav-tabs .nav-link:not(.active) { color: #cbd5e1; }

[lw-theme-mode="dark"] .dataTables_wrapper .dataTables_info, [lw-theme-mode="dark"] .table td.dataTables_empty { color: #a3b1c2 !important; }

/* tema automata, cand sistemul e pe intunecat */
@media (prefers-color-scheme: dark) {
    [lw-theme-mode="system_default"] .dataTables_wrapper .dataTables_info, [lw-theme-mode="system_default"] .table td.dataTables_empty { color: #a3b1c2 !important; }
    [lw-theme-mode="system_default"] .table thead th, [lw-theme-mode="system_default"] .table .thead-light th, [lw-theme-mode="system_default"] .dataTables_wrapper .table.dataTable thead th { background-color: #1f2937 !important; color: #cbd5e1 !important; }
    [lw-theme-mode="system_default"] .card-stats .card-title, [lw-theme-mode="system_default"] .card .card-title.text-muted { color: #a3b1c2 !important; }
    [lw-theme-mode="system_default"] .pagination .page-item.disabled .page-link, [lw-theme-mode="system_default"] .dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link { color: #94a3b8 !important; }
    [lw-theme-mode="system_default"] .btn.btn-outline-primary.active, [lw-theme-mode="system_default"] .btn.btn-outline-primary:active { background-color: #00806a !important; border-color: #00806a !important; color: #fff !important; }
    [lw-theme-mode="system_default"] .alert .text-muted, [lw-theme-mode="system_default"] .bg-info .text-muted, [lw-theme-mode="system_default"] .bg-primary .text-muted, [lw-theme-mode="system_default"] .bg-success .text-muted, [lw-theme-mode="system_default"] .bg-danger .text-muted, [lw-theme-mode="system_default"] .bg-warning .text-muted, [lw-theme-mode="system_default"] .bg-dark .text-muted { color: inherit !important; opacity: .85; }
    [lw-theme-mode="system_default"] .alert code, [lw-theme-mode="system_default"] .bg-info code, [lw-theme-mode="system_default"] .bg-primary code, [lw-theme-mode="system_default"] .bg-success code, [lw-theme-mode="system_default"] .bg-danger code, [lw-theme-mode="system_default"] .bg-dark code { color: inherit; background-color: rgba(255,255,255,.18); }
    [lw-theme-mode="system_default"] .lw-whatsapp-preview .lw-whatsapp-buttons a, [lw-theme-mode="system_default"] .lw-whatsapp-preview-message-container .card-footer .list-group-item a { color: #7dd3fc !important; }
    [lw-theme-mode="system_default"] .lw-whatsapp-chat-window .metadata .time { color: #b3b3b3; }
    [lw-theme-mode="system_default"] .lw-whatsapp-chat-block-container .nav-tabs .nav-link:not(.active) { color: #cbd5e1; }
    [lw-theme-mode="system_default"] a { color: #34d1a7; }
    [lw-theme-mode="system_default"] a:hover { color: #6ee7c4; }
    [lw-theme-mode="system_default"] .text-primary { color: #2dd4bf !important; }
    [lw-theme-mode="system_default"] .text-success, [lw-theme-mode="system_default"] .text-green { color: #34d399 !important; }
    [lw-theme-mode="system_default"] .text-info { color: #38bdf8 !important; }
    [lw-theme-mode="system_default"] .text-warning { color: #fbbf24 !important; }
    [lw-theme-mode="system_default"] .input-group-text { color: #cbd5e1; }
    [lw-theme-mode="system_default"] .list-group-item.list-group-item-light, [lw-theme-mode="system_default"] .card.card-light, [lw-theme-mode="system_default"] .table.table-light { background-color: #1f2937 !important; color: #e2e8f0 !important; }
    [lw-theme-mode="system_default"] .text-muted { color: #a3b1c2 !important; }
    [lw-theme-mode="system_default"] .table thead th, [lw-theme-mode="system_default"] .dataTables_wrapper .table.dataTable thead th {
        background-color: #1f2937 !important; color: #cbd5e1 !important;
    }
    [lw-theme-mode="system_default"] .dataTables_wrapper .dataTables_info { color: #a3b1c2; }
    [lw-theme-mode="system_default"] .page-item.disabled .page-link { color: #94a3b8 !important; }
    [lw-theme-mode="system_default"] .custom-control-label, [lw-theme-mode="system_default"] label { color: #cbd5e1; }
    [lw-theme-mode="system_default"] .text-default, [lw-theme-mode="system_default"] a.text-default, [lw-theme-mode="system_default"] .text-light { color: #e2e8f0 !important; }
    [lw-theme-mode="system_default"] code { color: #f9a8d4; }
    [lw-theme-mode="system_default"] .btn.btn-outline-secondary { color: #cbd5e1 !important; border-color: #64748b !important; }
    [lw-theme-mode="system_default"] .btn.btn-outline-secondary:hover { background-color: #334155 !important; color: #fff !important; }
    /* fundaluri pline: nuante care tin text alb lizibil (culorile temei inchise sunt prea deschise pentru alb) */
    [lw-theme-mode="system_default"] .btn.btn-primary, [lw-theme-mode="system_default"] .badge.badge-primary, [lw-theme-mode="system_default"] .bg-primary, [lw-theme-mode="system_default"] .nav-tabs .nav-link.active, [lw-theme-mode="system_default"] .nav-pills .nav-link.active { background-color: #00806a !important; border-color: #00806a !important; color: #fff !important; }
    [lw-theme-mode="system_default"] .btn.btn-primary:hover { background-color: #006b58 !important; border-color: #006b58 !important; }
    [lw-theme-mode="system_default"] .btn.btn-success, [lw-theme-mode="system_default"] .alert.alert-success, [lw-theme-mode="system_default"] .badge.badge-success, [lw-theme-mode="system_default"] .bg-success { background-color: #047857 !important; border-color: #047857 !important; color: #fff !important; }
    [lw-theme-mode="system_default"] .btn.btn-success:hover { background-color: #065f46 !important; border-color: #065f46 !important; }
    [lw-theme-mode="system_default"] .btn.btn-warning, [lw-theme-mode="system_default"] .alert.alert-warning, [lw-theme-mode="system_default"] .badge.badge-warning, [lw-theme-mode="system_default"] .bg-warning { background-color: #b45309 !important; border-color: #b45309 !important; color: #fff !important; }
    [lw-theme-mode="system_default"] .btn.btn-warning:hover { background-color: #92400e !important; border-color: #92400e !important; }
    [lw-theme-mode="system_default"] .btn.btn-danger, [lw-theme-mode="system_default"] .alert.alert-danger, [lw-theme-mode="system_default"] .badge.badge-danger, [lw-theme-mode="system_default"] .bg-danger { background-color: #b91c1c !important; border-color: #b91c1c !important; color: #fff !important; }
    [lw-theme-mode="system_default"] .btn.btn-danger:hover { background-color: #991b1b !important; border-color: #991b1b !important; }
    [lw-theme-mode="system_default"] .btn.btn-info, [lw-theme-mode="system_default"] .alert.alert-info, [lw-theme-mode="system_default"] .badge.badge-info, [lw-theme-mode="system_default"] .bg-info { background-color: #0e7490 !important; border-color: #0e7490 !important; color: #fff !important; }
    [lw-theme-mode="system_default"] .btn.btn-dark, [lw-theme-mode="system_default"] .alert.alert-dark, [lw-theme-mode="system_default"] .badge.badge-dark, [lw-theme-mode="system_default"] .bg-dark { background-color: #475569 !important; border-color: #475569 !important; color: #fff !important; }
    [lw-theme-mode="system_default"] .badge.badge-secondary { background-color: #475569 !important; color: #f1f5f9 !important; }
    [lw-theme-mode="system_default"] .badge.badge-light { background-color: #334155 !important; color: #e2e8f0 !important; }
    [lw-theme-mode="system_default"] .btn.btn-light, [lw-theme-mode="system_default"] .btn.btn-light:focus { background-color: #334155 !important; border-color: #475569 !important; color: #f1f5f9 !important; }
    [lw-theme-mode="system_default"] .btn.btn-light:hover { background-color: #3f4d63 !important; color: #fff !important; }
    [lw-theme-mode="system_default"] .btn.btn-outline-light { color: #e2e8f0 !important; border-color: #64748b !important; }
    [lw-theme-mode="system_default"] .alert.alert-light { background-color: #1f2937 !important; border-color: #334155 !important; color: #e2e8f0 !important; }
    [lw-theme-mode="system_default"] .table-warning, [lw-theme-mode="system_default"] .table-warning > td, [lw-theme-mode="system_default"] .table-warning > th { background-color: rgba(245,158,11,.14) !important; color: inherit !important; }
    [lw-theme-mode="system_default"] .table-danger, [lw-theme-mode="system_default"] .table-danger > td, [lw-theme-mode="system_default"] .table-danger > th { background-color: rgba(239,68,68,.14) !important; color: inherit !important; }
    [lw-theme-mode="system_default"] .table-success, [lw-theme-mode="system_default"] .table-success > td, [lw-theme-mode="system_default"] .table-success > th { background-color: rgba(16,185,129,.14) !important; color: inherit !important; }
    [lw-theme-mode="system_default"] .table-info, [lw-theme-mode="system_default"] .table-info > td, [lw-theme-mode="system_default"] .table-info > th { background-color: rgba(14,116,144,.2) !important; color: inherit !important; }
    [lw-theme-mode="system_default"] pre { background-color: #0f172a; color: #e2e8f0; }
    [lw-theme-mode="system_default"] .lw-soft-panel { background-color: rgba(255,255,255,.05); border-color: rgba(255,255,255,.09); color: #e2e8f0; }
    [lw-theme-mode="system_default"] .lw-soft-panel h1, [lw-theme-mode="system_default"] .lw-soft-panel h2, [lw-theme-mode="system_default"] .lw-soft-panel h3, [lw-theme-mode="system_default"] .lw-soft-panel h4, [lw-theme-mode="system_default"] .lw-soft-panel h5 { color: #f1f5f9 !important; }
    [lw-theme-mode="system_default"] .table tr.lw-group-row > td, [lw-theme-mode="system_default"] .table tr.lw-group-row > th { background-color: #243041 !important; color: #e2e8f0 !important; border-top-color: #334155; }
    [lw-theme-mode="system_default"] .table tr.lw-group-row strong { color: #86efac; }
}
