/* Tranziție fluidă pentru schimbarea temei */
body {
        background: linear-gradient(to bottom, #f8f9fa, #e0e7ff);
        min-height: 100vh;
    }

/* ================= DARK MODE – ULTRA AGRESIV + ANIMAȚII SMOOTH ================= */
body.dark-mode {
    background: linear-gradient(to bottom, #111111, #000);
    color: #f0f0f0 !important;                 /* Text aproape alb */
    animation: fadeInDark 0.8s ease-out;
}

@keyframes fadeInDark {
    from {
        background-color: #f8f9fa;
        opacity: 0.9;
    }
    to {
        background-color: #000000;
        opacity: 1;
    }
}

/* Tranziții globale smooth în dark mode */
body.dark-mode,
body.dark-mode * {
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.4s ease,
                box-shadow 0.4s ease,
                transform 0.3s ease !important;
}

/* Toate fundalurile posibile */
body.dark-mode .bg-light,
body.dark-mode .bg-white,
body.dark-mode .card,
body.dark-mode .table-responsive,
body.dark-mode .table,
body.dark-mode .modal-content,
body.dark-mode .dropdown-menu,
body.dark-mode .toast,
body.dark-mode .alert,
body.dark-mode .border.rounded-3 {
    background-color: #0e0e0e !important;
    border-color: #222222 !important;
}

/* Text – contrast maxim */
body.dark-mode .text-muted {
    color: #999999 !important;
}
body.dark-mode .text-dark,
body.dark-mode strong,
body.dark-mode .fw-bold,
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3,
body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 {
    color: #ffffff !important;
}

/* Tabel ultra-dark – interior complet */
body.dark-mode .table {
    color: #eeeeee !important;
    background-color: #0e0e0e !important;
}
body.dark-mode .table thead {
    background-color: #111111 !important;
    color: #ffffff !important;
}
body.dark-mode .table thead th {
    border-color: #333333 !important;
    color: #ffffff !important;
}
body.dark-mode .table td,
body.dark-mode .table th {
    color: #f0f0f0 !important;
    border-color: #222222 !important;
    background-color: transparent !important;
}
body.dark-mode .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #161616 !important;
}
body.dark-mode .table-hover > tbody > tr:hover {
    background-color: #252525 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    border-radius: 8px;
}

/* Text specific în celule tabel */
body.dark-mode .table .text-end,
body.dark-mode .table .text-center,
body.dark-mode .table .fw-bold,
body.dark-mode .table strong,
body.dark-mode .table small {
    color: #ffffff !important;
}
body.dark-mode .table .text-muted {
    color: #888888 !important;
}

/* Badge-uri în tabel */
body.dark-mode .table .badge {
    color: #000000 !important;
    font-weight: 600;
    padding: 0.35em 0.65em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}
body.dark-mode .table .badge.bg-success {
    background-color: #00A500 !important;
    color:#fff;
    animation: pulseSuccess 1.2s ease-out;
}
@keyframes pulseSuccess {
    0%   { transform: scale(0.8); opacity: 0; }
    60%  { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

/* Butoane în tabel */
body.dark-mode .table .btn-light {
    background-color: #222 !important;
    border-color: #555 !important;
}
body.dark-mode .table .btn-light:hover {
    background-color: #555 !important;
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(21, 56, 84, 0.5);
}

/* Iconițe în tabel */
body.dark-mode .table i {
    filter: brightness(1.3);
    transition: filter 0.3s ease, transform 0.3s ease;
}
body.dark-mode .table tr:hover i {
    transform: scale(1.1) rotate(10deg);
}

/* Totalurile zilnice */
body.dark-mode .table tr.fw-bold.text-white {
    background: linear-gradient(90deg, #1a1a1a, #252525) !important;
    color: #bb86fc !important;
    font-size: 1.05rem;
    box-shadow: 0 4px 15px rgba(21, 56, 84, 0.2);
    transition: all 0.5s ease;
}
body.dark-mode .table tr.fw-bold.text-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(21, 56, 84, 0.4);
}

/* Linii și borduri */
body.dark-mode .border,
body.dark-mode .border-bottom,
body.dark-mode .border-top,
body.dark-mode .dropdown-divider {
    border-color: #222222 !important;
}
body.dark-mode .shadow,
body.dark-mode .shadow-sm,
body.dark-mode .shadow-lg {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
}

/* Alerte */
body.dark-mode .alert-warning {
    background-color: #3d3000 !important;
    border-color: #806600 !important;
    color: #ffebcd !important;
}

/* Inputuri și formulare */
body.dark-mode .form-control,
body.dark-mode .form-select,
body.dark-mode .input-group-text {
    background-color: #111111 !important;
    border-color: #333333 !important;
    color: #f0f0f0 !important;
}
body.dark-mode .form-control::placeholder {
    color: #777777 !important;
}

/* Butoane generale */
body.dark-mode .btn-outline-secondary {
    color: #cccccc !important;
    border-color: #444444 !important;
}
body.dark-mode .btn-outline-secondary:hover {
    background-color: #333333 !important;
    color: #ffffff !important;
}
body.dark-mode .btn-outline-primary,
body.dark-mode .btn-primary {
    color: #0088FF !important;
    border-color: #0088FF !important;
    background-color: #111 !important;
}
body.dark-mode .btn-outline-primary:hover,
body.dark-mode .btn-primary:hover {
    color: #ffffff !important;
    border-color: #0088FF !important;
    background-color: #0088FF !important;
}
body.dark-mode .btn-outline-danger,
body.dark-mode .btn-danger {
    color: #AF2B24 !important;
    border-color: #AF2B24 !important;
    background-color: #111 !important;
}
body.dark-mode .btn-outline-danger:hover,
body.dark-mode .btn-danger:hover {
    color: #ffffff !important;
    border-color: #AF2B24 !important;
    background-color: #AF2B24 !important;
}

body.dark-mode .btn-outline-dark,
body.dark-mode .btn-dark {
    color: #ffffff !important;
    border-color: #555 !important;
    background-color: #222 !important;
}
body.dark-mode .btn-outline-dark:hover,
body.dark-mode .btn-dark:hover {
    color: #ffffff !important;
    border-color: #555 !important;
    background-color: #333 !important;
}

/* Paginare */
body.dark-mode .pagination .page-link {
    background-color: #111111 !important;
    border-color: #333333 !important;
    color: #cccccc !important;
}
body.dark-mode .pagination .page-item.active .page-link {
    background-color: #0066B5 !important;
    border-color: #0066B5 !important;
    color: #fff !important;
}

body.dark-mode .pagination .page-item .page-link:hover {
    background-color: #0088FF !important;
    border-color: #0088FF !important;
    color: #fff !important;
}

/* Badge-uri generale */
body.dark-mode .badge.bg-success { background-color: #00A500 !important; }
body.dark-mode .badge.bg-danger   { background-color: #ff4444 !important; }
body.dark-mode .badge.bg-primary  { background-color: #0088FF !important; }
body.dark-mode .badge.bg-warning  { background-color: #ffaa00 !important; color: #000 !important; }
body.dark-mode .badge.bg-dark  { background-color: #666 !important; color: #FFF !important; }

/* Scroll to top */
body.dark-mode #scrollToTopBtn {
    background-color: rgba(0, 136, 255, 0.95) !important;
}
body.dark-mode #scrollToTopBtn:hover {
    background-color: #0088FF !important;
    transform: translateY(-6px);
}

/* Dropdown și toast */
body.dark-mode .dropdown-menu {
    background-color: #111111 !important;
    border-color: #333333 !important;
}
body.dark-mode .dropdown-item {
    color: #e0e0e0 !important;
}
body.dark-mode .dropdown-item:hover {
    background-color: #222222 !important;
}
body.dark-mode .toast {
    background-color: #111111 !important;
    color: #ffffff !important;
}

/* Scrollbar personalizat */
body.dark-mode ::-webkit-scrollbar {
    width: 10px;
}
body.dark-mode ::-webkit-scrollbar-track {
    background: #0e0e0e;
}
body.dark-mode ::-webkit-scrollbar-thumb {
    background: #0066B5;
    border-radius: 10px;
}
body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #2970B2;
}

body.dark-mode .alert-link {
    color: #FF6A00 !important;
}
body.dark-mode .alert-link:hover {
    color: #FF8A42 !important;
}

body.dark-mode .card-body {
    color: #FFF !important;
}
body.dark-mode .vr {
    color: #444 !important;
}

/* tabs */
body.dark-mode .nav-tabs {
    border-bottom-color: #222; /* linia de jos în dark mode */
    background-color: transparent;
}

/* Starea implicită a link-urilor (neactive) */
body.dark-mode .nav-tabs .nav-link {
    color: #777; /* text gri-deschis, bună vizibilitate pe fundal întunecat */
    background-color: #141414; /* fundal ușor gri închis pentru tab-uri neactive */
    border-color: #222; /* bordură subtilă */
    transition: all 0.3s ease;
}

/* Hover pe tab-uri neactive */
body.dark-mode .nav-tabs .nav-link:hover {
    color: #ffffff;
    background-color: #1d1d1d;
    border-color: #2d2d2d;
    isolation: isolate; /* previne suprapuneri ciudate */
}

/* Tab activ */
body.dark-mode .nav-tabs .nav-link.active {
    color: #ffffff !important;
    background-color: #222;
    border-color: #222;
    font-weight: 500;
}

/* Focus (accesibilitate tastatură) */
body.dark-mode .nav-tabs .nav-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    color: #ffffff;
}

/* Linia de jos a tab-urilor active (Bootstrap o generează cu ::after) */
body.dark-mode .nav-tabs .nav-link.active::after {
    background-color: #000;
}


/* Footer general – fundal și text */
body.dark-mode footer.bg-dark {
    background-color: #121212 !important; /* negru profund pentru dark mode */
    color: #e0e0e0 !important; /* text gri-deschis pentru citire ușoară */
}

/* Titluri coloane (h6) */
body.dark-mode footer h6 {
    color: #aaaaaa !important; /* gri mediu pentru subtitluri */
    font-weight: 600;
}

/* Iconițe din titluri */
body.dark-mode footer h6 i {
    color: #888888;
}

/* Linkuri footer – starea normală */
body.dark-mode footer .footer-link {
    color: #bbbbbb !important; /* gri deschis */
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

/* Iconițe din linkuri */
body.dark-mode footer .footer-link i {
    color: #999999;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

/* Hover pe linkuri */
body.dark-mode footer .footer-link:hover {
    color: #ffffff !important; /* alb la hover */
}

body.dark-mode footer .footer-link:hover i {
    color: #0d6efd !important; /* albastru Bootstrap primar pentru iconiță la hover */
}

/* Separator (hr) */
body.dark-mode footer hr {
    border-color: #333333 !important;
    opacity: 0.3;
}

/* Copyright text */
body.dark-mode footer p.small {
    color: #999999 !important;
}

body.dark-mode footer p.small strong {
    color: #dddddd !important;
}

/* Link versiune (text-success) */
body.dark-mode footer a.text-success {
    color: #28a745 !important; /* verde Bootstrap – rămâne vizibil și în dark */
}

body.dark-mode footer a.text-success:hover {
    color: #34ce57 !important;
    text-decoration: underline;
}


/* ============================================= */
/* ACCORDION SOCIETĂȚI – Dark Mode               */
/* ============================================= */

/* Accordion general în dark mode */
body.dark-mode .accordion-flush .accordion-item.societate-item {
    background-color: #1e1e1e; /* fundal închis pentru fiecare item */
    border-color: #333333;
    margin-bottom: 0.75rem;
    border-radius: 0.5rem !important;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* Butonul accordion (header) */
body.dark-mode .accordion-button {
    background-color: #252525 !important;
    color: #e0e0e0 !important;
    font-weight: 600;
    padding: 1rem 1.25rem;
    border: none;
}

body.dark-mode .accordion-button:not(.collapsed) {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
    box-shadow: inset 0 -1px 0 #444;
}

body.dark-mode .accordion-button::after {
    filter: brightness(2); /* face săgeata albă în dark mode */
}

/* Hover pe buton (când e închis) */
body.dark-mode .accordion-button.collapsed:hover {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
}

/* Focus accesibilitate */
body.dark-mode .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.3);
}

/* Corpul accordion-ului (conținut deschis) */
body.dark-mode .accordion-body {
    background-color: #1a1a1a;
    color: #d0d0d0;
    padding-top: 0.5rem;
}

/* List group în interior */
body.dark-mode .accordion-body .list-group-item {
    background-color: transparent;
    border-color: #333333;
    color: #d0d0d0;
    padding: 1rem 0;
}

/* Ultimul item fără bordură jos (opțional, pentru curățenie) */
body.dark-mode .accordion-body .list-group-item:last-child {
    border-bottom: none;
}

/* Badge-uri în interiorul accordion-ului */
body.dark-mode .accordion-body .badge {
    font-size: 0.85rem;
    padding: 0.5em 0.8em;
}

/* Badge CASCO (roșu) – rămâne vizibil */
body.dark-mode .accordion-body .badge.bg-danger {
    background-color: #dc3545 !important;
    color: #ffffff;
}

/* Badge Locuință (galben) – ajustat pentru contrast în dark */
body.dark-mode .accordion-body .badge.bg-warning.text-dark {
    background-color: #ffc107 !important;
    color: #212529 !important; /* text închis pentru contrast */
}

/* Linkuri PDF */
body.dark-mode .accordion-body a {
    color: #4da3ff !important; /* albastru deschis, clar vizibil */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

body.dark-mode .accordion-body a:hover {
    color: #80bfff !important;
    text-decoration: underline;
}

/* Iconițe PDF (roșii) */
body.dark-mode .accordion-body i.bi-file-earmark-pdf {
    color: #dc3545;
}

/* Imagine logo societate */
body.dark-mode .accordion-button img {
    filter: brightness(1.1) contrast(1.1); /* puțin mai luminoase în dark mode */
}
/* ================= STILURI ORIGINALE (light mode + generale) ================= */
.user-info {font-size: 1.1rem; font-weight: 500;}
.user-info .badge {font-size: 0.75rem;}
.btn-icon {padding: 0.375rem 0.75rem;}
.header-right {display: flex; align-items: center; gap: 12px;}

/* Tooltip discret și curat */
.custom-tooltip .tooltip-inner {
    background-color: #343a40 !important;
    color: #e9ecef !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    font-size: 0.875rem !important;
    max-width: 280px !important;
    text-align: left !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}
.custom-tooltip .tooltip-arrow::before {
    border-bottom-color: #343a40 !important;
}
.bi-question-circle:hover {
    opacity: 1 !important;
    color: #6c757d !important;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}
.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background: #dee2e6;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}
.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}
.timeline-left { margin-right: 55%; text-align: right; }
.timeline-right { margin-left: 55%; }
.timeline-badge {
    position: absolute;
    left: 50%;
    margin-left: -20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    z-index: 1;
}
.timeline-content {
    position: relative;
}
@media (max-width: 768px) {
    .timeline::before { left: 20px; }
    .timeline-left, .timeline-right { margin-left: 0; margin-right: 0; text-align: left; }
    .timeline-badge { left: 0; margin-left: 0; }
    .timeline-content { margin-left: 60px; }
}

/* Scroll to Top – Minimalist & Professional */
#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 998;
    width: 48px;
    height: 48px;
    background-color: rgba(13, 110, 253, 0.85);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}
#scrollToTopBtn:hover {
    background-color: #0d6efd;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
#scrollToTopBtn.show {
    display: flex;
}
@media (max-width: 768px) {
    #scrollToTopBtn {
        width: 44px;
        height: 44px;
        bottom: 100px;
        right: 33px;
        font-size: 1.2rem;
    }
}

.title-link {
    position: relative;
    transition: transform 0.4s ease;
    overflow: hidden;
    display: inline-block;
}
.title-link:hover { transform: translateY(-4px); }

.rca-text {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    margin-left: 0.15em;
    background: linear-gradient(90deg, #0d6efd, #0dcaf0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    opacity: 1;
}
.title-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #0dcaf0);
    margin: 12px 0;
    border-radius: 3px
}
.subtitle-text {
    font-size: 1rem;
    color: #555;
    letter-spacing: 6px;
    margin-left: 6px;
    font-weight: 500;
    opacity: 1;
}

/* Avatar pătrat minimalist */
.user-avatar-square {
    width: 56px;
    height: 56px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
    border: 3px solid #ccc;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.user-avatar-square:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Elimină săgeata dropdown */
.dropdown-toggle-custom::after { display: none !important; }

/* Responsive */
@media (max-width: 992px) {
    .rca-text { font-size: 2.1rem; }
    .subtitle-text { font-size: 0.95rem; letter-spacing: 5px; }
}
@media (max-width: 768px) {
    .header-main { flex-direction: column; text-align: center; gap: 1.5rem; }
    .user-info { text-align: center; }
    .header-right { justify-content: center; }
}
@media (max-width: 576px) {
    .rca-text { font-size: 1.8rem; }
    .subtitle-text { font-size: 0.9rem; letter-spacing: 3px; }
    .user-avatar-square { width: 50px; height: 50px; border-width: 4px; }
}

.card-total-agents {
    cursor: pointer;
    border-width: 2px !important;
}
.card-total-agents .default-view,
.card-total-agents .hover-view,
.card-total-agents .icon-main,
.card-total-agents .number-big,
.card-total-agents .title-text,
.card-total-agents .info-badge span,
.card-total-agents .hover-content {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-total-agents .default-view {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 2;
}
.card-total-agents .hover-view {
    opacity: 0;
    transform: translateX(-30px) scale(0.95);
    z-index: 1;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
}
.card-total-agents .icon-main {
    transform: scale(1);
}
.card-total-agents .info-badge span {
    transform: rotate(0deg);
    font-size: 0.8rem;
    width: 1.6rem;
    height: 1.6rem;
}
.card-total-agents:hover .default-view {
    opacity: 0;
    transform: translateX(30px) scale(0.9);
}
.card-total-agents:hover .hover-view {
    opacity: 1;
    transform: translateX(0) scale(1);
}
.card-total-agents:hover .icon-main {
    transform: scale(1.2) rotate(10deg);
    filter: brightness(1.3);
}
.card-total-agents:hover .info-badge span {
    transform: rotate(360deg);
    background-color: #0d6efd !important;
    box-shadow: 0 0 15px rgba(13, 110, 253, 0.6);
}
.card-total-agents:hover .number-big {
    transform: translateY(-10px);
}
.card-total-agents:hover .title-text {
    transform: translateY(20px);
    opacity: 0.7;
}
.card-total-agents:hover .info-badge span {
    animation: pulse-badge 1.5s infinite;
}
@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 15px rgba(13, 110, 253, 0.4); }
    50% { box-shadow: 0 0 25px rgba(13, 110, 253, 0.8); }
}

.mobile-drawer {
    position: fixed; start: 0; end: 0; bottom: 0; max-height: 95vh; overflow-y: auto;
    background: white; border-top-left-radius: 1.5rem; border-top-right-radius: 1.5rem;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
    transform: translateY(100%); transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1050; padding-bottom: env(safe-area-inset-bottom);
}
.drawer-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    opacity: 0; transition: opacity 0.3s; z-index: -1;
}
.ui-autocomplete {
    max-height: 300px; overflow-y: auto; background: white; border: 1px solid #ced4da;
    border-radius: .375rem; box-shadow: 0 10px 25px rgba(0,0,0,.15); font-size: .875rem; z-index: 1050 !important;
}

#mobilePillMenu button {
    font-size: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#mobilePillMenu button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* BOKEH ELEGANT ȘI SUBTIL */
#bokehOverlay {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: none !important;
    z-index: 997;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.bokeh-bg {
    position: absolute;
    inset: 0;
    opacity: 0.5;
    background-image:
        radial-gradient(circle at 15% 85%, rgba(135, 206, 250, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 85% 15%, rgba(255, 182, 193, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(221, 160, 221, 0.2) 0%, transparent 45%),
        radial-gradient(circle at 30% 60%, rgba(144, 238, 144, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 70% 40%, rgba(255, 218, 135, 0.2) 0%, transparent 45%);
    background-size: 500px 500px, 700px 700px, 600px 600px, 450px 450px, 550px 550px;
    background-position: 0% 0%, 100% 100%, 50% 50%, -50px 100px, 100px -50px;
    background-repeat: no-repeat;
    animation: bokehFloat 30s infinite linear alternate;
    filter: blur(1px);
}
@keyframes bokehFloat {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    100% { transform: translate(80px, 80px) scale(1.05) rotate(10deg); }
}

    /* Hover efect pentru link-uri footer */
    .hover-text-success {
        transition: color 0.3s ease, transform 0.2s ease;
    }
    .hover-text-success:hover {
        color: #0d6efd !important;
        transform: translateX(5px);
    }
    
    @keyframes pulseStrong {
        0%   { box-shadow:0 0 0 0 rgba(220,53,69,.8); }
        70%  { box-shadow:0 0 0 20px rgba(220,53,69,0); }
        100% { box-shadow:0 0 0 0 rgba(220,53,69,0); }
    }

    .pulse-core {
        position:absolute;
        inset:0;
        border-radius:50%;
        animation:pulseStrong 2s infinite;
        pointer-events:none;
    }

    #pulseCircle {
        cursor:pointer;
        overflow:visible;
    }

    .transition-icon {
        transition: top .4s ease, transform .4s ease, font-size .4s ease;
    }

    .transition-count {
        transition: opacity .4s ease;
    }
    
.footer-link {
    color: white !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--bs-secondary) !important; /* gri (text-secondary) */
}

.footer-link:focus {
    outline: 2px solid var(--bs-secondary);
    outline-offset: 2px;
}

/* Opțional: spațiere mai bună pe mobile foarte mici */
@media (max-width: 576px) {
    .row.g-4 > div {
        margin-bottom: 1.5rem;
    }
    hr.my-4 {
        margin: 1.5rem 0;
    }
}

.nav-tabs {
    border-bottom-color: #ccc; /* linia de jos în dark mode */
    background-color: transparent;
}

/* Starea implicită a link-urilor (neactive) */
.nav-tabs .nav-link {
    color: #aaa; /* text gri-deschis, bună vizibilitate pe fundal întunecat */
    background-color: #fff; /* fundal ușor gri închis pentru tab-uri neactive */
    border-bottom-color: #ccc; /* linia de jos în dark mode */
    transition: all 0.5s ease;
}

/* Hover pe tab-uri neactive */
.nav-tabs .nav-link:hover {
    color: #111;
    background-color: #fff;
    border-color: #c1c1c1;
    isolation: isolate; /* previne suprapuneri ciudate */
}

/* Tab activ */
.nav-tabs .nav-link.active {
    color: #111 !important;
    background-color: #fcfcfc;
    border-color: #aaa;
    border-bottom-color: #fff;
    transition: all 0.5s ease;
}

/* Focus (accesibilitate tastatură) */
.nav-tabs .nav-link:focus {
    box-shadow: 0 0 0 0.1rem rgba(175, 206, 255, 0.17);
    color: #111;
}

/* Linia de jos a tab-urilor active (Bootstrap o generează cu ::after) */
.nav-tabs .nav-link.active::after {
    background-color: #fff;
}


    /* Liquid Glassmorphism Carduri */
    .liquid-glass-card {
        background: linear-gradient(135deg, rgba(255,255,255,0.75), rgba(255,255,255,0.45));
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border-radius: 1.5rem;
        border: 1px solid rgba(255,255,255,0.4);
        border-top: 1px solid rgba(255,255,255,0.6);
        border-left: 1px solid rgba(255,255,255,0.6);
        box-shadow: 0 8px 32px rgba(0,0,0,0.1), inset 0 2px 8px rgba(255,255,255,0.3);
        overflow: hidden;
        min-height: 320px;
    }
    .dark-mode .liquid-glass-card {
        background: linear-gradient(135deg, rgba(30,30,46,0.85), rgba(20,20,35,0.65));
        border: 1px solid rgba(255,255,255,0.15);
        border-top: 1px solid rgba(255,255,255,0.25);
        border-left: 1px solid rgba(255,255,255,0.25);
        box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 2px 10px rgba(255,255,255,0.1);
    }

    /* Hover carduri */
    .hover-lift {
        transition: transform 0.5s cubic-bezier(0.23,1,0.32,1), box-shadow 0.5s ease;
    }
    .hover-lift:hover {
        transform: translateY(-15px);
        box-shadow: 0 30px 60px rgba(0,0,0,0.2) !important;
    }

    /* Butoane minimaliste super profesionale */
    .minimal-btn {
        position: relative;
        display: inline-flex;
        text-decoration: none;
        align-items: center;
        font-weight: 600;
        font-size: 1.05rem;
        letter-spacing: 0.5px;
        padding: 0.5rem 0;
        background: none;
        border: none;
        color: inherit;
        transition: color 0.4s ease;
    }

    .minimal-btn::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 50%;
        background: currentColor;
        transition: width 0.4s ease, left 0.4s ease;
    }

    .minimal-btn:hover {
        color: inherit;
        transform: translateY(-2px);
    }

    .minimal-btn:hover::after {
        width: 100%;
        left: 0;
    }

    .minimal-btn i {
        transition: transform 0.4s ease;
    }

    .minimal-btn:hover i {
        transform: translateX(6px);
    }

    /* Dark mode ajustări butoane */
    .dark-mode .minimal-btn {
        opacity: 0.9;
    }
    .dark-mode .minimal-btn:hover {
        opacity: 1;
    }
    

.modal-backdrop {
    background: rgba(255, 255, 255, 0.02) !important;
    backdrop-filter: blur(4px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(4px) saturate(180%) !important;
}

body.dark-mode .modal-backdrop {
    background: rgba(10, 10, 20, 0.1) !important;
    backdrop-filter: blur(4px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(4px) saturate(120%) !important;
}

/* Opțional: animație ușoară la apariția backdrop-ului */
.modal-backdrop.show {
    opacity: 1 !important;
}

/* Asigură că modalul însuși nu primește blur (rămâne clar) */
.modal-content {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}