/* Custom Theme Colors - Dispositif Managérial */
:root {
    --bs-primary: #10b981;
    --bs-primary-rgb: 16, 185, 129;
    --bs-blue: #10b981;
    --bs-indigo: #059669;
}

/* Override Bootstrap primary color */
.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: #fff !important;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(135deg, #0d9668 0%, #047857 100%);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}

.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
    background: linear-gradient(135deg, #0d9668 0%, #047857 100%);
    color: #fff !important;
}

.btn-outline-primary {
    color: #10b981;
    border-color: #10b981;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    color: #fff;
}

.btn-soft-primary {
    color: #10b981 !important;
    background-color: rgba(16, 185, 129, 0.1);
}

.btn-soft-primary:hover,
.btn-soft-primary:focus,
.btn-soft-primary:active {
    color: #fff !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Links */
a,
.link-primary {
    color: #10b981 !important;
}

a:hover,
.link-primary:hover,
.link-primary:focus {
    color: #0d9668 !important;
}

/* Text colors */
.text-primary {
    color: #10b981 !important;
}

/* Background colors */
.bg-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.bg-soft-primary {
    background-color: rgba(16, 185, 129, 0.1) !important;
}

/* Borders */
.border-primary {
    border-color: #10b981 !important;
}

/* Badges */
.badge.bg-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

/* Form controls focus */
.form-control:focus,
.form-select:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
}

.form-check-input:checked {
    background-color: #10b981;
    border-color: #10b981;
}

.form-check-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
}

/* Navbar active links */
.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
    color: #10b981 !important;
}

/* Dropdown */
.dropdown-item.active,
.dropdown-item:active {
    background-color: #10b981;
}

/* Pagination */
.page-link {
    color: #10b981;
}

.page-link:hover {
    color: #0d9668;
}

.page-item.active .page-link {
    background-color: #10b981;
    border-color: #10b981;
}

/* Progress bars */
.progress-bar {
    background-color: #10b981;
}

/* Alerts */
.alert-primary {
    color: #10b981;
    background-color: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

.alert-soft-primary {
    color: #10b981;
    background-color: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

/* Cards with primary accent */
.card-primary {
    border-top: 3px solid #10b981;
}

/* Sidebar Styles */
.navbar-vertical-aside {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #fff;
}

.navbar-vertical-aside .navbar-brand {
    /* filter: brightness(0) invert(1); */
}

.navbar-vertical-aside .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    transition: all 0.3s ease;
}

.navbar-vertical-aside .nav-link:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-vertical-aside .nav-link.active {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.navbar-vertical-aside .nav-icon {
    color: rgba(255, 255, 255, 0.85);
}

.navbar-vertical-aside .nav-link.active .nav-icon {
    color: #fff;
}

.navbar-vertical-aside .dropdown-header {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.navbar-vertical-aside .nav-link-title {
    color: inherit;
}

.navbar-vertical-aside .navbar-aside-toggler {
    color: rgba(255, 255, 255, 0.85);
}

.navbar-vertical-aside .navbar-aside-toggler:hover {
    color: #fff;
}

/* Sidebar active items */
.navbar-vertical .nav-link.active {
    color: #10b981;
}

/* Table */
.table-primary {
    --bs-table-bg: rgba(16, 185, 129, 0.1);
    --bs-table-striped-bg: rgba(16, 185, 129, 0.15);
    --bs-table-active-bg: rgba(16, 185, 129, 0.2);
    --bs-table-hover-bg: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

/* Dark mode support */
[data-hs-theme="dark"] {
    --bs-primary: #10b981;
    --bs-primary-rgb: 16, 185, 129;
}

[data-hs-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

[data-hs-theme="dark"] .btn-primary:hover {
    background: linear-gradient(135deg, #0d9668 0%, #047857 100%);
    color: #fff !important;
}

/* Dark mode sidebar */
[data-hs-theme="dark"] .navbar-vertical-aside {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

[data-hs-theme="dark"] .navbar-vertical-aside .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
}

[data-hs-theme="dark"] .navbar-vertical-aside .nav-link:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1);
}

[data-hs-theme="dark"] .navbar-vertical-aside .nav-link.active {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Additional button fixes for text visibility */
.btn-light {
    color: #212529 !important;
}

.btn-light:hover,
.btn-light:focus,
.btn-light:active {
    color: #212529 !important;
    background-color: #f8f9fa;
}

/* Ensure all primary buttons have white text */
.btn-primary,
.btn-primary:visited,
.btn-primary:link {
    color: #fff !important;
}

/* Fix for btn-outline-primary text on hover */
.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:not(:disabled):not(.disabled).active {
    color: #fff !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
}

/* Additional button text visibility fixes */
.btn-success,
.btn-info,
.btn-warning,
.btn-danger {
    color: #fff !important;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-info:hover,
.btn-info:focus,
.btn-info:active,
.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active,
.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active {
    color: #fff !important;
}

/* Fix for btn-secondary */
.btn-secondary {
    color: #fff !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    color: #fff !important;
}

/* Fix for btn-dark */
.btn-dark {
    color: #fff !important;
}

.btn-dark:hover,
.btn-dark:focus,
.btn-dark:active {
    color: #fff !important;
}

/* Ensure all gradient buttons have white text */
[style*="gradient"] .btn,
.btn[style*="gradient"] {
    color: #fff !important;
}

/* Sidebar additional styles for better visibility */
.navbar-vertical-aside .navbar-vertical-container {
    background: transparent;
}

.navbar-vertical-aside .navbar-vertical-content {
    background: transparent;
}

.navbar-vertical-aside .card-navbar-nav {
    background: transparent;
}

/* Sidebar border adjustments */
.navbar-vertical-aside.navbar-bordered {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Additional colors for dashboard */
.text-purple {
    color: #8b5cf6 !important;
}

.btn-outline-purple {
    color: #8b5cf6;
    border-color: #8b5cf6;
}

.btn-outline-purple:hover {
    background-color: #8b5cf6;
    border-color: #8b5cf6;
    color: #fff;
}

