﻿/* wwwroot/css/custom.css */

/* === LAYOUT PRINCIPAL === */
body {
    display: flex;
    background-color: #f8f9fa;
}

#main-content {
    flex: 1;
    transition: margin-left 0.3s ease-in-out, margin-top 0.3s ease-in-out;
    margin-top: 70px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 100%;
}

/* Când sidebar-ul este pinned și activ, ajustăm conținutul principal */
#main-content.sidebar-active {
    margin-left: 280px;
    margin-right: auto;
    width: calc(100% - 280px);
    max-width: calc(100% - 280px);
}

/* Pe ecrane mici, nu ajustăm layoutul - sidebar devine overlay */
@media (max-width: 768px) {
    #main-content.sidebar-active {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-width: 100%;
    }
}

/* === TOPBAR MODERN === */
.navbar {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(17, 153, 142, 0.1);
    z-index: 1040 !important; /* !important pentru a suprascrie .fixed-top - sub modal backdrop (1050) */
}

/* Forțăm z-index pentru navbar fixed-top */
.navbar.fixed-top {
    z-index: 1040 !important; /* Sub modal backdrop (1050) - va fi întunecate când modale active */
}

.navbar-brand {
    font-weight: 600;
    color: #11998e !important;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: translateX(5px);
}

.navbar-brand img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: translateX(5px);
}

.nav-link {
    color: #495057 !important;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    color: #11998e !important;
    background-color: rgba(17, 153, 142, 0.05);
}

.nav-link i {
    font-size: 1.1rem;
}

.dropdown-menu {
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.dropdown-item {
    padding: 0.75rem 1.25rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(17, 153, 142, 0.1);
    color: #11998e;
}

/* === SIDEBAR MODERN === */
#sidebar {
    width: 280px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #ffffff !important;
    border-right: 1px solid rgba(17, 153, 142, 0.1);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 70px;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000 !important; /* Mult sub modal backdrop (1050) - !important pentru a fi sigur */
}

/* Scrollbar personalizat pentru sidebar */
#sidebar::-webkit-scrollbar {
    width: 6px;
}

#sidebar::-webkit-scrollbar-track {
    background: transparent;
}

#sidebar::-webkit-scrollbar-thumb {
    background: rgba(17, 153, 142, 0.2);
    border-radius: 3px;
}

#sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(17, 153, 142, 0.4);
}

/* Butoane menu */
#sidebar .btn-toggle {
    text-align: left;
    padding: 0.75rem 1.25rem;
    background-color: transparent;
    border: none;
    width: 100%;
    font-weight: 500;
    color: #495057;
    transition: all 0.3s ease;
    border-radius: 10px;
    margin: 0.25rem 0.5rem;
    width: calc(100% - 1rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#sidebar .btn-toggle i.fas,
#sidebar .btn-toggle i.far {
    color: #11998e;
    font-size: 1rem;
    min-width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

#sidebar .btn-toggle:hover i.fas,
#sidebar .btn-toggle:hover i.far {
    transform: scale(1.1);
}

#sidebar .btn-toggle:hover {
    background-color: rgba(17, 153, 142, 0.08);
    color: #11998e;
    transform: translateX(4px);
}

#sidebar .btn-toggle i.bi-chevron-down {
    color: #6c757d;
    font-size: 0.9rem;
}

#sidebar .btn-toggle[aria-expanded="true"] i.bi-chevron-down {
    transform: rotate(180deg);
}

/* Link-uri simple (Acasa) */
#sidebar a.btn-toggle {
    color: #495057;
    text-decoration: none;
}

#sidebar a.btn-toggle:hover {
    background-color: rgba(17, 153, 142, 0.08);
    color: #11998e;
}

/* Link-uri din submeniu */
#sidebar .btn-toggle-nav {
    padding-left: 1rem;
}

#sidebar .btn-toggle-nav a {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0.6rem 1.25rem;
    color: #6c757d;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0.2rem 0.5rem;
    width: calc(100% - 1rem);
    position: relative;
}

#sidebar .btn-toggle-nav a i.fas,
#sidebar .btn-toggle-nav a i.far {
    color: #11998e;
    font-size: 0.9rem;
    min-width: 18px;
    text-align: center;
    transition: all 0.3s ease;
}

#sidebar .btn-toggle-nav a:hover i.fas,
#sidebar .btn-toggle-nav a:hover i.far {
    transform: scale(1.1);
}

#sidebar .btn-toggle-nav a:hover {
    background-color: rgba(17, 153, 142, 0.08);
    color: #11998e;
    transform: translateX(4px);
}

/* Active state pentru link-uri */
#sidebar .btn-toggle-nav a.active,
#sidebar a.btn-toggle.active {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.1) 0%, rgba(17, 153, 142, 0.05) 100%);
    color: #11998e;
    font-weight: 600;
    border-left: 3px solid #11998e;
}

#sidebar .btn-toggle-nav a.active i.fas,
#sidebar .btn-toggle-nav a.active i.far,
#sidebar a.btn-toggle.active i.fas,
#sidebar a.btn-toggle.active i.far {
    color: #11998e;
    transform: scale(1.15);
}

/* Collapse animation */
.collapse {
    transition: height 0.3s ease;
}

/* Sidebar collapsed state */
#sidebar.collapsed {
    width: 70px;
}

#sidebar.collapsed .btn-toggle span,
#sidebar.collapsed .btn-toggle-nav {
    display: none;
}

#sidebar.collapsed .btn-toggle {
    justify-content: center;
    padding: 0.75rem;
}

/* Footer sidebar */
#sidebar .mt-auto {
    border-top: 1px solid rgba(17, 153, 142, 0.1);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* === SIDEBAR PIN BUTTON === */
.sidebar-pin-btn {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.1) 0%, rgba(17, 153, 142, 0.05) 100%);
    border: 2px solid rgba(17, 153, 142, 0.3);
    border-radius: 10px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.sidebar-pin-btn .pin-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #11998e;
    white-space: nowrap;
}

.sidebar-pin-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(17, 153, 142, 0.2), transparent);
    transition: left 0.5s ease;
}

.sidebar-pin-btn:hover::before {
    left: 100%;
}

.sidebar-pin-btn i {
    font-size: 1.3rem;
    color: #11998e;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

.sidebar-pin-btn:hover {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.15) 0%, rgba(17, 153, 142, 0.08) 100%);
    border-color: #11998e;
    box-shadow: 0 4px 12px rgba(17, 153, 142, 0.2);
    transform: translateY(-2px);
}

/* Pin oblic (unpinned) - stare default */
.sidebar-pin-btn i {
    transform: rotate(-45deg);
}

/* Pin vertical (pinned) - când sidebar-ul e pinned */
.sidebar-pin-btn.pinned i {
    transform: rotate(0deg);
    color: #0f8075;
}

.sidebar-pin-btn.pinned {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.2) 0%, rgba(17, 153, 142, 0.1) 100%);
    border-color: #11998e;
}

/* Animație bounce când se face pin/unpin */
.sidebar-pin-btn.animating i {
    animation: pinBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes pinBounce {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-10deg) scale(1.2); }
    50% { transform: rotate(10deg) scale(1.3); }
    75% { transform: rotate(-5deg) scale(1.1); }
}

/* Dark mode pin button */
.dark-mode .sidebar-pin-btn {
    background: linear-gradient(135deg, rgba(19, 179, 166, 0.15) 0%, rgba(19, 179, 166, 0.08) 100%);
    border-color: rgba(19, 179, 166, 0.4);
}

.dark-mode .sidebar-pin-btn i {
    color: #13b3a6;
}

.dark-mode .sidebar-pin-btn:hover {
    background: linear-gradient(135deg, rgba(19, 179, 166, 0.2) 0%, rgba(19, 179, 166, 0.12) 100%);
    border-color: #13b3a6;
    box-shadow: 0 4px 12px rgba(19, 179, 166, 0.3);
}

.dark-mode .sidebar-pin-btn.pinned {
    background: linear-gradient(135deg, rgba(19, 179, 166, 0.25) 0%, rgba(19, 179, 166, 0.15) 100%);
    border-color: #13b3a6;
}

.dark-mode .sidebar-pin-btn.pinned i {
    color: #13b3a6;
}

/* Versiune text */
#sidebar .text-secondary {
    color: #adb5bd !important;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.05) 0%, rgba(17, 153, 142, 0.02) 100%);
    border-radius: 8px;
    margin: 0 0.5rem;
}

#sidebar .text-secondary i {
    color: #11998e;
    font-size: 1rem;
}

/* Când sidebar-ul e collapsed */
#sidebar.collapsed .form-check {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
}

#sidebar.collapsed .sidebar-pin-btn {
    width: 50px;
    padding: 0.5rem;
    justify-content: center;
}

#sidebar.collapsed .sidebar-pin-btn .pin-text {
    display: none;
}

#sidebar.collapsed .sidebar-pin-btn i {
    margin-right: 0 !important;
}

#sidebar.collapsed .text-secondary {
    display: none;
}

/* === SIDEBAR TOGGLE BUTTON === */
#sidebarToggle {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#sidebarToggle:hover {
    background-color: rgba(17, 153, 142, 0.1);
}

#sidebarToggle .navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    content: "";
    background: no-repeat center center;
    background-size: 100% 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%2311998e' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M1 2h14M1 8h14M1 14h14'/%3E%3C/svg%3E");
    transition: transform 0.3s ease;
}

#sidebarToggle:hover .navbar-toggler-icon {
    transform: scale(1.1);
}

/* === UTILITY CLASSES === */
.flex-shrink-0 {
    flex-shrink: 0 !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

/* === DARK MODE === */
.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

.dark-mode body {
    background-color: #1a1a1a;
}

.dark-mode a {
    color: #e0e0e0 !important;
}

.dark-mode a:hover {
    color: #13b3a6 !important;
}

.dark-mode .bg-light {
    background-color: #1f1f1f !important;
}

.dark-mode .border-bottom {
    border-bottom-color: #3e3e3e !important;
}

/* Dark mode - Navbar */
.dark-mode .navbar {
    background: linear-gradient(135deg, #1f1f1f 0%, #2a2a2a 100%) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .nav-link {
    color: #e0e0e0 !important;
}

.dark-mode .nav-link:hover {
    color: #13b3a6 !important;
    background-color: rgba(19, 179, 166, 0.1);
}

.dark-mode .dropdown-menu {
    background-color: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .dropdown-item {
    color: #e0e0e0;
}

.dark-mode .dropdown-item:hover {
    background-color: rgba(19, 179, 166, 0.15);
    color: #13b3a6;
}

/* Dark mode - Sidebar */
.dark-mode #sidebar {
    background-color: #1f1f1f !important;
    border-right-color: rgba(255, 255, 255, 0.1);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
}

.dark-mode #sidebar .btn-toggle,
.dark-mode #sidebar a.btn-toggle {
    color: #e0e0e0;
}

.dark-mode #sidebar .btn-toggle i.fas,
.dark-mode #sidebar .btn-toggle i.far,
.dark-mode #sidebar a.btn-toggle i.fas,
.dark-mode #sidebar a.btn-toggle i.far {
    color: #13b3a6;
}

.dark-mode #sidebar .btn-toggle:hover,
.dark-mode #sidebar a.btn-toggle:hover {
    background-color: rgba(19, 179, 166, 0.15);
    color: #13b3a6;
}

.dark-mode #sidebar .btn-toggle-nav a {
    color: #adb5bd;
}

.dark-mode #sidebar .btn-toggle-nav a i.fas,
.dark-mode #sidebar .btn-toggle-nav a i.far {
    color: #13b3a6;
}

.dark-mode #sidebar .btn-toggle-nav a:hover {
    background-color: rgba(19, 179, 166, 0.15);
    color: #13b3a6;
}

.dark-mode #sidebar .btn-toggle-nav a.active,
.dark-mode #sidebar a.btn-toggle.active {
    background: linear-gradient(135deg, rgba(19, 179, 166, 0.2) 0%, rgba(19, 179, 166, 0.1) 100%);
    color: #13b3a6;
    border-left-color: #13b3a6;
}

.dark-mode #sidebar .btn-toggle-nav a.active i.fas,
.dark-mode #sidebar .btn-toggle-nav a.active i.far {
    color: #13b3a6;
}

.dark-mode #sidebar .form-check-label {
    color: #adb5bd;
}

.dark-mode #sidebar .form-check-input {
    border-color: #6c757d;
    background-color: #2a2a2a;
}

.dark-mode #sidebar .form-check-input:checked {
    background-color: #13b3a6;
    border-color: #13b3a6;
}

.dark-mode #sidebar .form-check-label i {
    color: #13b3a6;
}

.dark-mode #sidebar .text-secondary {
    color: #6c757d !important;
}

.dark-mode #sidebarToggle .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%2313b3a6' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M1 2h14M1 8h14M1 14h14'/%3E%3C/svg%3E");
}

.dark-mode #sidebarToggle:hover {
    background-color: rgba(19, 179, 166, 0.15);
}

.btn-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .btn-toggle span {
        flex-grow: 1;
    }

    .btn-toggle i {
        transition: transform 0.3s;
    }

    .btn-toggle[aria-expanded="true"] i {
        transform: rotate(180deg);
    }



/* Stil pentru popup */
.popup {
    position: fixed;
    top: 70px;
    right: 20px;
    padding: 15px 35px;
    background-color: #dc3545; 
    color: #ffffff;
    font-size: 16px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.popup-info {
    position: fixed;
    top: 70px;
    right: 20px;
    padding: 15px 35px;
    background-color: green; 
    color: #ffffff;
    font-size: 16px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease;
}

    /* Stil pentru butonul de închidere */
    .popup .close-btn {
        position: absolute;
        top: 5px;
        right: 5px;
        margin-top: 5px;
        margin-left:10px;
        background: none;
        background-color:transparent;
        border: none;
        color: #ffffff;
        font-size: 20px;
        cursor: pointer;
    }

    /* Stil când popup-ul este vizibil */
    .popup.show {
        opacity: 1;
    }

    /* Stil când popup-ul este ascuns */
    .popup.hidden {
        display: none;
    }

.popup-info .close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    margin-top: 5px;
    margin-left: 10px;
    background: none;
    background-color: transparent;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
}

/* Stil când popup-ul este vizibil */
.popup-info.show {
    opacity: 1;
}

/* Stil când popup-ul este ascuns */
.popup-info.hidden {
    display: none;
}


/* Topbar */

.nav-link {
    display: inline !important;
}

.navbar-brand {
    flex-grow: 1;
}
.navbar-nav {
    flex-direction: row !important;
}
.navbar-nav li {
    margin-left:3px;
}
.navbar-nav .dropdown-menu {
    position:absolute;
    z-index: 1041; /* Deasupra navbar (z-index: 1040) pentru afișare corectă */
}
        /* Iconițele din topbar */
        .nav-link i {
    display: inline-block;
}

/* Ascunderea textului sub 992px */
@media (max-width: 992px) {
    .nav-text {
        display: none;
    }
}

/* Afișarea textului peste 992px */
@media (min-width: 992px) {
    .nav-link .nav-text {
        display: inline;
        margin-left: 8px; /* Opțional, pentru a adăuga spațiu între iconiță și text */
    }
}




/* Sidebar */
#sidebar {
    width: 250px;
    transition: transform 0.3s ease-in-out;
    padding-top: 56px; /* Ajustează pentru a ține cont de înălțimea topbar-ului */
    z-index: 1100;
    position: fixed;
}

    #sidebar.collapsed {
        transform: translateX(-100%);
    }

@media (max-width: 768px) {
    #sidebar {
       
        top: 56px; /* Ajustează pentru a ține cont de înălțimea topbar-ului */
        left: 0;
        height: calc(100% - 56px); /* Ajustează înălțimea pentru a exclude topbar-ul */
        transform: translateX(-100%);
        z-index: 1050;
    }

        #sidebar.active {
            transform: translateX(0);
        }
}

/* Butonul pentru toggling-ul sidebar-ului */
#sidebarToggle {
    display: inline-block;
    z-index: 1100;
}

/* Asigurarea că sidebar-ul este funcțional și pe ecrane mari */
@media (min-width: 769px) {
    #sidebar {
        position: fixed;
        top: 56px;
        left: 0;
        height: calc(100% - 56px);
    }
}

.container-lg {
    max-width: 1200px; /* sau o altă lățime dorită */
    margin-left: auto;
    margin-right: auto;
}

.increase-size {
    font-size: 1.5rem;
}

.input-group > .select2-container--bootstrap {
    width: auto;
    flex: 1 1 auto;
}

    .input-group > .select2-container--bootstrap .select2-selection--single {
        height: 100%;
        line-height: inherit;
        padding: 0.5rem 1rem;
    }

#indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#indicator img {
    width: 100px;
    height: 100px;
}

.scrolling-wrapper {
    overflow-x: auto; /* Permite derularea pe orizontală */
    white-space: nowrap;
    display: flex; /* Flexbox pentru a aranja div-urile pe un singur rând */
    align-items: flex-start; /* Alinierea cardurilor în partea de sus */
    padding-top: 10px; /* Adaugă un pic de spațiu de sus */
}

.card-tichete {
    display: inline-block; /* Face cardurile să se comporte ca elemente inline */
    margin-right: 10px; /* Spațiu între carduri */
    min-width: 300px; /* Lățimea fiecărui card */
    height: auto;
    vertical-align: top; /* Asigură că toate cardurile sunt aliniate sus */
    min-height: 800px;
    margin-bottom:20px;
}
.card-title-tichete {
    display: -webkit-box; /* Utilizat pentru a limita numărul de linii */
    -webkit-line-clamp: 2; /* Limitează la 2 rânduri */
    -webkit-box-orient: vertical; /* Orientează textul pe verticală */
    overflow: hidden; /* Ascunde textul care depășește 2 rânduri */
    text-overflow: ellipsis; /* Adaugă "..." la sfârșitul textului care depășește */
    line-height: 1.2em; /* Înălțimea fiecărui rând (ajustează după cum dorești) */
    max-height: 2.4em; /* Limitează înălțimea totală la 2 rânduri */
    color:darkgreen;
}

.containerExtins {
    position: absolute; 
    left: 0;
    width: 100vw; 
    padding-left: 5vw; 
    padding-right: 5vw; 
    margin: 0; 
}


.timer.threshold-warning {
    color: orange;
    font-weight: bolder;
}

.timer.threshold-exceeded {
    color: black;
    font-weight: bolder;
}

.clickable-row.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.comanda-noua {
    background-color: yellow;
    animation: flash 1s infinite;
}

@keyframes flash {
    0% {
        background-color: yellow;
    }

    50% {
        background-color: orange;
    }

    100% {
        background-color: yellow;
    }
}

#ListaBucatarieCuPaginatie {
 
}

.progress-bar {
    height: 30px; 
    line-height: 30px; 
    font-size: 1.25rem; 
}

.comanda-sarbu .form-label {
    font-size: medium;
    font-weight: bold;
}

.margine-sus {
    margin-top:2em;
}

.checkbox-mare {
    transform: scale(1.5); /* mărește checkbox-ul */
    transform-origin: left center; /* setează punctul de ancorare pentru mărire */
    margin-right: 0.5em; /* spațiu între checkbox și text */
}

.card-img-indrumator{
    height:200px;
    width:200px;
}

#ListaTicheteCuPaginatie
{
   /* margin-top:200px;*/
}

.coloana-descriere {
    white-space: pre-wrap; /* păstrează spaţii şi salturi de linie */
    word-wrap: break-word; /* sparge cuvintele prea lungi */
}

/* === MODAL BACKDROP FIX === */
/* Forțăm backdrop-ul modalului să acopere COMPLET ecranul, inclusiv sidebar și navbar */
.modal-backdrop {
    z-index: 1045 !important; /* Între sidebar/navbar (1000-1040) și modal (1055) */
}

.modal {
    z-index: 1055 !important; /* Deasupra backdrop-ului */
}

/* === NAVBAR ACTIONS (butoane din dreapta) === */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Buton stil icon pentru navbar */
.nav-icon-btn {
    width: 40px;
    height: 40px;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 10px !important;
    color: #495057 !important;
    transition: all 0.2s ease !important;
    position: relative;
}

.nav-icon-btn:hover {
    background-color: rgba(17, 153, 142, 0.1) !important;
    color: #11998e !important;
    transform: translateY(-2px);
}

.nav-icon-btn i {
    font-size: 1.25rem;
}

/* Ascundem săgeata dropdown pentru butoanele icon */
.nav-icon-btn.dropdown-toggle::after {
    display: none;
}

/* Separator între butoane */
.nav-separator {
    display: block;
    width: 1px;
    height: 24px;
    background: linear-gradient(180deg, transparent, rgba(17, 153, 142, 0.3), transparent);
    margin: 0 0.5rem;
}

/* Butonul de auto-hide când e activ */
#btnToggleAutoHide.active {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(17, 153, 142, 0.3);
}

#btnToggleAutoHide.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17, 153, 142, 0.4);
}

/* === AUTO-HIDE NAVBAR === */
.navbar.fixed-top {
    transition: transform 0.3s ease-in-out;
}

.navbar.fixed-top.navbar-hidden {
    transform: translateY(-100%);
}

/* Când navbar e ascuns, main-content ocupă tot spațiul */
body.navbar-is-hidden #main-content {
    margin-top: 0;
}

/* Pentru POS - ajustăm și container-ul principal */
body.navbar-is-hidden .pos-container {
    height: 100vh;
}

body.navbar-is-hidden .breadcrumb-pos {
    margin-top: 10px;
}

/* === DARK MODE pentru Navbar Actions === */
html.dark-mode .nav-icon-btn {
    color: var(--dark-text-secondary, #e2e8f0) !important;
}

html.dark-mode .nav-icon-btn:hover {
    background-color: rgba(19, 179, 166, 0.15) !important;
    color: var(--dark-primary, #13b3a6) !important;
}

html.dark-mode .nav-separator {
    background: linear-gradient(180deg, transparent, rgba(19, 179, 166, 0.4), transparent);
}

html.dark-mode #btnToggleAutoHide.active {
    background: linear-gradient(135deg, #0d6b62 0%, #13b3a6 100%) !important;
}

/* Dropdown dark mode styling */
html.dark-mode .navbar-actions .dropdown-menu {
    background-color: var(--dark-bg-surface, #1e293b);
    border-color: var(--dark-border, #2d3548);
}

html.dark-mode .navbar-actions .dropdown-item {
    color: var(--dark-text-secondary, #e2e8f0);
}

html.dark-mode .navbar-actions .dropdown-item:hover {
    background-color: rgba(19, 179, 166, 0.15);
    color: var(--dark-primary, #13b3a6);
}

html.dark-mode .navbar-actions .dropdown-divider {
    border-color: var(--dark-border, #2d3548);
}