/* Styles généraux */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fb;
}

/* Sidebar */
.sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    padding: 0;
}

.sidebar .nav-link {
    color: white;
    padding: 12px 20px;
    border-left: 4px solid transparent;
    transition: all 0.3s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: rgba(255,255,255,0.1);
    border-left-color: white;
}

.sidebar .nav-link i {
    width: 20px;
    margin-right: 10px;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid #eee;
    border-radius: 15px 15px 0 0 !important;
    padding: 15px 20px;
}

/* Tables */
.table {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    border-bottom: 2px solid var(--primary-color);
    background-color: #f8f9fa;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Badges */
.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 500;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: white !important;
}

/* Dashboard stats */
.stat-card {
    border-radius: 15px;
    overflow: hidden;
    color: white;
    padding: 20px;
}

.stat-card .stat-icon {
    font-size: 3rem;
    opacity: 0.8;
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 10px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
        position: fixed;
        bottom: 0;
        width: 100%;
        z-index: 1000;
    }
    
    .sidebar .nav {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .sidebar .nav-link {
        border-left: none;
        border-top: 3px solid transparent;
        text-align: center;
        padding: 10px 5px;
        font-size: 0.8rem;
    }
    
    .sidebar .nav-link:hover,
    .sidebar .nav-link.active {
        border-left-color: transparent;
        border-top-color: white;
    }
    
    .sidebar .nav-link i {
        display: block;
        margin: 0 auto 5px;
        font-size: 1.2rem;
    }
    
    .main-content {
        margin-bottom: 60px;
    }
}