/* Layout styles */
body {
    display: flex;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Login Page Styles */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2rem;
}

.login-container {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.login-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.login-header {
    background: #4e73df;
    padding: 2rem;
    text-align: center;
}

.login-header h2 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
}

.login-body {
    padding: 2rem;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4a5568;
    font-weight: 500;
}

.login-form .form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.login-form .form-control:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 3px rgba(78,115,223,0.1);
}

.btn-login {
    width: 100%;
    padding: 0.8rem;
    background: #4e73df;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: #2e59d9;
    transform: translateY(-2px);
}

.login-footer {
    text-align: center;
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
}

.login-footer a {
    color: #4e73df;
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   LEGACY SIDEBAR STYLES (DEPRECATED)
   Remplacé par sidebar-pro.css
   ============================================ */

/* Ancienne sidebar désactivée - voir sidebar-pro.css */
/*
.sidebar {
    width: 280px;
    height: 100vh;
    background: #ffffff;
    color: #2c3e50;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.05);
    border-right: 1px solid #e9ecef;
}
*/

/* Main content styles - mis à jour pour sidebar-pro */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width, 280px);
    background: #f8f9fa;
    min-height: 100vh;
    width: calc(100% - var(--sidebar-width, 280px));
    box-sizing: border-box;
    transition: margin-left 0.3s ease, width 0.3s ease;
}

body.sidebar-collapsed .main-content {
    margin-left: var(--sidebar-collapsed, 72px);
    width: calc(100% - var(--sidebar-collapsed, 72px));
}

@media (max-width: 991.98px) {
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding-top: 70px;
    }
}

/* Legacy sidebar elements - conservés pour compatibilité */
/*
.sidebar-header {
    padding: 25px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}
*/

.logo {
    max-width: 140px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Legacy menu styles - conservés pour compatibilité */
/*
.sidebar-menu {
    padding: 15px 0;
}

.menu-section {
    margin-bottom: 20px;
}

.menu-label {
    color: #718096;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 8px 24px;
    margin: 16px 0 8px;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, transparent, #f8f9fa, transparent);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 4px 12px;
    border-radius: 8px;
    background: transparent;
}

.menu-item:hover {
    background: #f8f9fa;
    color: #2c3e50;
    transform: translateX(4px);
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.05);
}

.menu-item.active {
    background: #3498db;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 4px 6px -1px rgba(52, 152, 219, 0.2);
}

.menu-item i {
    width: 20px;
    margin-right: 12px;
    text-align: center;
    color: inherit;
    transition: color 0.3s ease;
}

.menu-item span {
    font-size: 14px;
    font-weight: 400;
    transition: font-weight 0.2s ease;
}

.menu-item.active span {
    font-weight: 500;
}
*/

/* Legacy accordion menu styles - conservés pour compatibilité */
/*
.menu-accordion {
    position: relative;
}

.accordion-header {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.accordion-header .accordion-arrow {
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-left: 20px;
}

.menu-accordion.open .accordion-content {
    max-height: 500px;
}

.menu-accordion.open .accordion-header .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 4px 0;
    border-radius: 8px;
    background: transparent;
    padding-right: 20px;
}

.accordion-item:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

.accordion-item.active {
    background: #3498db;
    color: #fff;
    border-radius: 8px;
}
*/

/* Dropdown styles - toujours actif */
.dropdown-menu {
    z-index: 9999;
    min-width: 200px;
    border: 1px solid rgba(0,0,0,.15);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    padding: 8px 16px;
    display: flex;
    align-items: center;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0;
    border-radius: 4px;
    background: transparent;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

.dropdown-divider {
    margin: 4px 0;
    border-color: rgba(0,0,0,.1);
}

.dropdown-item:hover {
    background: #e9ecef;
    color: #2c3e50;
    transform: none;
    box-shadow: none;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

.dropdown-item.active {
    background: #3498db;
    color: #fff;
}

.dropdown-item i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

.dropdown-item span {
    font-size: 14px;
}

/* Styles pour les filtres de période */
.period-filter {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 20px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.period-filter label {
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 0;
}

.period-filter select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #4a5568;
    transition: all 0.2s ease;
    min-width: 140px;
}

.custom-period {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
}

.custom-period input[type="date"] {
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 14px;
}

.custom-period button {
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-period button:hover {
    background: #2980b9;
}

.kpi-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.kpi-card .card-title {
    font-size: 14px;
    color: #718096;
    margin-bottom: 8px;
}

.kpi-card .card-text {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.period-filter select:hover {
    border-color: #cbd5e0;
}

.period-filter select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.filters-container {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}
/* Rest of the existing CSS styles remain unchanged... */
.right-align {
    margin-left: auto;
    float: inline-end;
}   
.left-align {
    margin-right: auto;
    float: inline-start;
}