:root {
    --sidebar-width: 250px;
    --sidebar-bg: #2c3e50;
    --sidebar-color: #ecf0f1;
    --main-bg: #f8f9fa;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.layout-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    background: #2c3e50;
    transition: all 0.3s;
}

.sidebar-header {
    padding: 20px;
    background: #243342;
}

.sidebar-header h3 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
}

.sidebar .nav {
    padding: 1rem 0;
}

.sidebar .nav-item {
    width: 100%;
    margin-bottom: 5px;
}

.sidebar .nav-link {
    padding: 12px 20px;
    color: #ecf0f1;
    font-size: 1rem;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.sidebar .nav-link:hover {
    background: #34495e;
    color: #fff;
    border-left-color: #3498db;
}

.sidebar .nav-link.active {
    background: #34495e;
    color: #fff;
    border-left-color: #3498db;
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar .badge {
    margin-left: auto;
    background: #e74c3c;
    color: white;
    font-weight: normal;
    font-size: 0.8rem;
    padding: 5px 8px;
}

.main-content {
    margin-left: 280px;
    padding: 2rem;
    transition: all 0.3s;
}

.sidebar-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 101;
    background: #2c3e50;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .sidebar {
        margin-left: -280px;
    }

    .sidebar.active {
        margin-left: 0;
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: block;
    }

    .sidebar.active + .main-content {
        margin-left: 280px;
    }
}

.sidebar-heading {
    padding: 10px 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #95a5a6;
    font-weight: bold;
    margin-top: 20px;
}

.sidebar .nav-link {
    position: relative;
    overflow: hidden;
}

.sidebar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.sidebar .nav-link:hover::after {
    transform: scaleX(1);
}

/* Styles pour l'authentification */
body.auth-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    max-width: 400px;
    width: 100%;
    padding: 20px;
}

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

.auth-header {
    background: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
    margin: -20px -20px 20px;
}

.auth-header h1 {
    font-size: 24px;
    margin: 0;
}

.auth-logo {
    max-width: 150px;
    margin-bottom: 15px;
}

.auth-card .form-control {
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #ddd;
}

.auth-card .form-control:focus {
    border-color: #2c3e50;
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);
}

.auth-card .btn-primary {
    background-color: #2c3e50;
    border-color: #2c3e50;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    width: 100%;
}

.auth-card .btn-primary:hover {
    background-color: #34495e;
    border-color: #34495e;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.auth-footer a {
    color: #2c3e50;
    text-decoration: none;
}

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

.auth-card .alert {
    border-radius: 8px;
    margin-bottom: 20px;
}

.auth-card .form-floating {
    margin-bottom: 15px;
}

.auth-card .form-floating label {
    padding: 12px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
} 

.table-responsive .dropdown {
    position: relative;
    overflow: visible;
}
