/* === Base Styles === */
:root {
    --primary-color: #4a6da7;
    --secondary-color: #304b78;
    --accent-color: #5a8edd;
    --light-bg: #f8f9fa;
    --dark-text: #333;
    --medium-text: #555;
    --light-text: #888;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container-fluid {
    padding: 0 20px;
}

/* === Navigation === */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
}

.navbar-brand {
    padding: 0;
}

.Logo {
    transition: transform 0.3s ease;
}

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

.nav-link {
    color: var(--dark-text);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-link:hover {
    background-color: rgba(74, 109, 167, 0.1);
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* === Authentication Page === */
.auth-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 450px;
    margin: 50px auto;
    padding: 30px;
}

.auth-header {
    margin-bottom: 25px;
    text-align: center;
}

.auth-header h2 {
    color: var(--primary-color);
    font-weight: 600;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: border 0.3s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(90, 142, 221, 0.2);
}

.auth-form button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.auth-form button:hover {
    background-color: var(--secondary-color);
}

.auth-brand {
    text-align: center;
    margin-bottom: 30px;
}

.auth-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--light-text);
}

/* === Tables === */
.table-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #ddd;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table th {
    background-color: rgba(74, 109, 167, 0.1);
    color: var(--primary-color);
    padding: 12px 15px;
    font-weight: 600;
    text-align: left;
    border-top: 1px solid #ddd;
}

.table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover {
    background-color: rgba(74, 109, 167, 0.05);
}



/* === Section Titles === */
h2 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.section-title i {
    color: var(--accent-color);
}

/* === Utilities === */
.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 15px;
}

.mt-5 {
    margin-top: 30px;
}

/* === Mobile Responsive === */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0 15px;
    }

    .auth-container {
        margin: 20px 15px;
        padding: 20px;
    }

    .table-container {
        padding: 15px;
    }

    .table th, .table td {
        padding: 10px;
    }

    .navbar .navbar-brand {
        margin-right: 0;
    }

    .Logo {
        width: 120px;
    }
}






/* Pagination */
#pagination {
    text-align: center;
    margin-top: 15px;
}

.page-btn {
    background-color: #4a6da7;
    color: white;
    border: none;
    padding: 8px 12px;
    margin: 2px;
    border-radius: 5px;
    cursor: pointer;
}

.page-btn.active {
    background-color: #304b78;
    font-weight: bold;
}

/* Scroll horizontal */
.table-responsive {
    overflow-x: auto;
    position: relative;
}

.table-responsive::after {
    content: '⬅️ Faites défiler pour voir plus ➡️';
    position: absolute;
    right: 10px;
    top: -25px;
    font-size: 14px;
    color: #888;
}
