body {
    font-family: 'Tajawal', Arial, sans-serif;
    background-color: #f5f5f5;
}

.navbar-brand {
    font-weight: 900;
    display: flex;
    align-items: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.navbar-brand img {
    margin-left: 10px;
    height: 30px;
}

.sidebar {
    background-color: #090942;
    color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    height: calc(100vh - 56px);
    position: sticky;
    top: 56px;
}

.sidebar .nav-link {
    color: white;
    border-radius: 5px;
    margin-bottom: 5px;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background-color: #0d6efd;
    color: white;
}

.sidebar .nav-link i {
    margin-left: 8px;
}

.main-content {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 20px;
}

.dropdown-menu {
    font-family: 'Tajawal', sans-serif;
}

.dropdown-menu-custom {
    background-color: #ac02f5;
    width: 250px;
    min-width: 150px;
}

.dropdown-item {
    text-align: right;
    padding-right: 1.5rem;
    color: white;
}

.dropdown-item:hover {
    text-align: right;
    padding-right: 1.5rem;
    color: white;
    background-color: #018a3a;
}

.dropdown-item i {
    margin-left: 8px;
}

.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-bottom: 20px;
}

.btn {
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    color: white;
    border: none;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.student-photo {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
}

.custom-text-color {
    color: #ff5733;
}

.custom-bg-color {
    background-color: #250124;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    right: 100%;
    margin-top: -6px;
    margin-left: -1px;
    display: none;
}

.dropdown-submenu:hover .dropdown-menu {
    display: block;
}

.form-control:focus {
    background-color: #77e9f7;
    border-color: #007bff;
    outline: none;
}

#image-preview {
    display: none;
    max-width: 300px;
    margin-top: 10px;
}

.table-responsive {
    overflow-x: auto;
}

.toast {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
}

.prof-photo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: transform 0.3s;
}

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

.form-label {
    font-weight: bold;
}

.dataTables_filter input {
    margin-left: 0.5em;
    margin-right: 0;
}

.dataTables_length select {
    margin-left: 0.5em;
    margin-right: 0;
}

.dataTables_info {
    text-align: left;
}

.espace {
    margin-right: 20px;
}

.select-default {
    background-color: #f8d7da;
    color: #721c24;
    font-weight: bold;
}

.select-selected {
    background-color: #d4edda;
    color: #155724;
    font-weight: bold;
}

.cours-item {
    max-width: 80%;
    width: fit-content;
    padding: 2px;
    margin-bottom: 2px;
    border-radius: 4px;
    font-size: 0.85rem;
    background-color: #e9ecef;
    color: #343a40;
    border-left: 4px solid #0d6efd;
}

.cours-item:last-child {
    margin-bottom: 0;
}

.seance-card {
    border-right: 4px solid #0d6efd;
    margin-bottom: 10px;
}

.matin-section {
    background-color: #f8f9fa;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.soir-section {
    background-color: #e9ecef;
    padding: 15px;
    border-radius: 5px;
}

.model-selector {
    max-width: 400px;
    margin-bottom: 20px;
}

.duration-badge {
    background-color: #6c757d;
    color: white;
}

.cours-cell {
    min-height: 80px;
    border: 2px solid #dee2e6;
    position: relative;
    padding: 5px;
    vertical-align: top;
}

.jour-header {
    background-color: #f8f9fa;
    font-weight: bold;
}

.session-col-header {
    width: 150px;
    background-color: #f8f9fa;
    font-weight: bold;
    vertical-align: middle;
}

.table th, .table td {
    text-align: center;
}

.table th:first-child, .table td:first-child {
    text-align: right;
}

#monDiv {
    display: none;
}

 
    /* Styles pour la sidebar scrollable */
.sidebar {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    height: calc(100vh - 56px);
    position: sticky;
    top: 56px;
    overflow-y: auto; /* Permet le défilement vertical */
}

/* Personnalisation de la scrollbar pour la sidebar */
.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Section du profil en haut de la sidebar */
.sidebar .sidebar-profile {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    z-index: 10;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Contenu de la sidebar qui défile */
.sidebar-content {
    padding-top: 10px;
}

/* Ajustement pour les écrans plus petits */
@media (max-height: 700px) {
    .sidebar {
        height: calc(100vh - 56px);
    }
}
