/* ===================================================
   GESTI - Thème Orange Construction #E67E22
   =================================================== */

:root {
    --vz-primary: #E67E22;
    --vz-primary-rgb: 230, 126, 34;
    --vz-primary-bg-subtle: #fdf3e7;
    --vz-primary-border-subtle: #f5c796;
    --vz-link-color: #E67E22;
    --vz-link-hover-color: #CA6F1E;
}

/* Sidebar dark avec accent orange */
.navbar-menu .navbar-nav .nav-link.active,
.navbar-menu .navbar-nav .nav-link:hover {
    color: #E67E22 !important;
}

.navbar-menu .navbar-nav .nav-link.active .nav-icon,
.navbar-menu .navbar-nav .nav-link:hover .nav-icon {
    color: #E67E22 !important;
}

/* Boutons primary orange */
.btn-primary {
    background-color: #E67E22 !important;
    border-color: #E67E22 !important;
    color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #CA6F1E !important;
    border-color: #CA6F1E !important;
}

.btn-soft-primary {
    background-color: rgba(230, 126, 34, 0.1) !important;
    color: #E67E22 !important;
    border-color: transparent !important;
}
.btn-soft-primary:hover {
    background-color: #E67E22 !important;
    color: #fff !important;
}

/* Auth page background orange */
.auth-one-bg {
    background-color: #E67E22 !important;
    background-image: linear-gradient(135deg, #E67E22 0%, #CA6F1E 50%, #A04000 100%) !important;
}

/* Texte primary */
.text-primary {
    color: #E67E22 !important;
}

/* Badges & pills */
.badge.bg-primary,
.bg-primary {
    background-color: #E67E22 !important;
}

/* Liens */
a:not(.btn):not(.nav-link):not(.dropdown-item) {
    color: #E67E22;
}
a:not(.btn):not(.nav-link):not(.dropdown-item):hover {
    color: #CA6F1E;
}

/* Form controls focus */
.form-control:focus,
.form-select:focus {
    border-color: #E67E22;
    box-shadow: 0 0 0 0.15rem rgba(230, 126, 34, 0.25);
}

/* Breadcrumb active */
.breadcrumb-item.active {
    color: #E67E22;
}

/* Page title icon */
.page-title-box .breadcrumb-item + .breadcrumb-item::before {
    color: #adb5bd;
}

/* Card hover border */
.card:hover {
    border-color: rgba(230, 126, 34, 0.2);
}

/* Sidebar active menu item */
#navbar-nav .nav-item .nav-link.active,
#navbar-nav .nav-item .nav-link[aria-expanded="true"] {
    color: #E67E22 !important;
}

/* Stats cards icons */
.avatar-sm .avatar-title.bg-primary {
    background-color: #E67E22 !important;
}

/* Progress bars */
.progress-bar.bg-primary {
    background-color: #E67E22 !important;
}

/* Pagination */
.page-item.active .page-link {
    background-color: #E67E22 !important;
    border-color: #E67E22 !important;
}
.page-link {
    color: #E67E22 !important;
}
.page-link:hover {
    color: #CA6F1E !important;
}

/* Alert levels */
.alert-primary {
    background-color: #fdf3e7;
    border-color: #f5c796;
    color: #7D4307;
}

/* Table row hover */
.table-hover tbody tr:hover {
    background-color: rgba(230, 126, 34, 0.04);
}

/* Dropdown active */
.dropdown-item.active,
.dropdown-item:active {
    background-color: #E67E22 !important;
}

/* Switch / Toggle */
.form-check-input:checked {
    background-color: #E67E22 !important;
    border-color: #E67E22 !important;
}

/* Logo text */
.logo-text {
    color: #E67E22;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.05em;
}

/* Sidebar dark logo area */
.navbar-brand-box .logo-text-sm {
    color: #E67E22;
    font-weight: 700;
    font-size: 1rem;
}

/* Custom stat cards */
.stat-card-orange {
    background: linear-gradient(135deg, #E67E22, #CA6F1E);
    color: white;
}

/* Alert stock minimum */
.alerte-stock {
    border-left: 4px solid #E74C3C;
    background-color: #fdf2f2;
}

/* Type mouvement badges */
.badge-entree { background-color: #27AE60 !important; }
.badge-sortie { background-color: #E74C3C !important; }
.badge-transfert { background-color: #3498DB !important; }

/* Ecart inventaire */
.ecart-positif { color: #27AE60; font-weight: 600; }
.ecart-negatif { color: #E74C3C; font-weight: 600; }
.ecart-zero { color: #95A5A6; }

/* Responsive improvements */
@media (max-width: 767.98px) {
    .page-title-box {
        padding: 0.75rem 0;
    }
}
