body {
    margin : 0;
    padding : 20px;
    font-family : Arial, sans-serif;
    background-color : #f5f5f5;
  }
  .container {
    margin : 0 auto;

  }
  .change-container {
    margin : 100px auto;
    padding : 30px;
    max-width : 800px;
    border : 1px solid #ccc;
    border-radius : 8px;
    background-color : white;
    box-shadow : 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  .change-container h2, login-container h2, .admin-container h2 {
      margin: 20px 0;
      text-align: center;
      color: #2c3e50;
      font-size: 1.8rem;
      font-weight: 500;
      padding-bottom: 10px;
      border-bottom: 2px solid #3498db;
  }
  .login-container {
    margin : 100px auto;
    padding : 30px;
    max-width : 400px;
    border : 1px solid #ccc;
    border-radius : 8px;
    background-color : white;
    box-shadow : 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  .login-container h2, .admin-container h2 {
      margin: 20px 0;
      text-align: center;
      color: #2c3e50;
      font-size: 1.8rem;
      font-weight: 500;
      padding-bottom: 10px;
      border-bottom: 2px solid #3498db;
  }
  .form-row{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 15px;
    margin-bottom: 15px;
  }
  .form-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.form-group label {
    min-width: 120px;
    text-align: right;
}

.form-group input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.admin-container {
    margin: 100px auto;
    padding: 30px;
    max-width: 400px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    
}

  .form-group input[type="number"] {
    width : 100px;
  }
  .form-group input[type="text"] {
    width : 300px;
  }
  .btn-primary {
    padding : 0.5rem 1rem;
    border : none;
    border-radius : 4px;
    font-weight : 500;
    color : white;
    background-color : #3498db;
    cursor : pointer;
  }
  .btn-secondary {
    padding : 0.5rem 1rem;
    border : none;
    border-radius : 4px;
    font-weight : 500;
    color : white;
    background-color : #95a5a6;
    cursor : pointer;
  }
  .btn-primary:hover {
    background-color : #2980b9;
  }
  .btn-secondary:hover {
    background-color : #7f8c8d;
  }
  .header-actions {
    display : flex;
    align-items : center;
    gap : 2rem;
    margin-bottom : 2rem;
  }
  .back-button {
    padding : 0.5rem 1rem;
    border : 1px solid #dee2e6;
    border-radius : 4px;
    text-decoration : none;
    color : #2c3e50;
    background-color : #f8f9fa;
    transition : all 0.2s ease;
  }
  .back-button:hover {
    color : #1a252f;
    background-color : #e9ecef;
  }
  .ue-item {
    position : relative;
    padding : 1.2rem;
    border : 1px solid #e0e0e0;
    border-radius : 6px;
    background : white;
    box-shadow : 0 1px 3px rgba(0, 0, 0, 0.12);
    border-left-width: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-left-color 0.3s ease;
}

.ue-item[data-status="obligatoire"] {
    border-left-color: #3498db;
}

.ue-item[data-status="optionnel"] {
    border-left-color: #e67e22;
}

.ue-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
  .ue-header {
    display : grid;
    grid-template-columns : 1fr auto auto;
    align-items : start;
    gap : 0.8rem;
    margin-bottom : 1rem;
    padding-bottom : 0.8rem;
    border-bottom : 1px solid #f0f0f0;
  }
  .ue-title-group {
    grid-column : 1;
  }
  .ue-code {
    font-size : 1.2rem;
    font-weight : 600;
    letter-spacing : 0.5px;
    color : #2c3e50;
  }
  .ue-title {
    margin-top : 0.3rem;
    font-size : 0.9rem;
    line-height : 1.4;
    color : #666;
  }
  .edit-ue-btn, .remove-ue {
    padding : 0.4rem 0.8rem;
    border : none;
    border-radius : 4px;
    font-size : 0.85rem;
    font-weight : 500;
    cursor : pointer;
  }
  .edit-ue-btn-red {
    color : white;
    background-color : #e74c3c;
  }
  .edit-ue-btn-green {
    color : white;
    background-color : #2ecc71;
  }
  .remove-ue {
    color : white;
    background-color : #e74c3c;
  }
  .edit-ue-btn-red:hover {
    background-color : #c0392b;
  }
  .edit-ue-btn-green:hover {
    background-color : #27ae60;
  }
  /* Supprimer la duplication du .status-toggle en bas du fichier et garder uniquement cette version */
  .status-toggle {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.8rem;
      font-size: 0.9rem;
      color: #2c3e50;
      font-weight: 500;
  }
  
  .switch {
      position: relative;
      display: inline-block;
      width: 46px;
      height: 24px;
  }
  
  .slider {
      position: absolute;
      cursor: pointer;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: #95a5a6;
      border-radius: 24px;
      transition: .3s;
  }
  
  .slider:before {
      position: absolute;
      content: "";
      height: 18px;
      width: 18px;
      left: 3px;
      bottom: 3px;
      background-color: white;
      border-radius: 50%;
      transition: .3s;
  }
  
  input:checked + .slider {
      background-color: #3498db;
  }
  
  input:checked + .slider:before {
      transform: translateX(22px);
  }
  .modal {
    display : none;
    position : fixed;
    top : 0;
    left : 0;
    width : 100%;
    height : 100%;
    z-index : 1000;
    background : rgba(0, 0, 0, 0.5);
  }
  .modal.active {
    display : flex;
    align-items : center;
    justify-content : center;
  }
  .modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    padding: 30px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    margin: 0 auto; /* Centrage horizontal */
    top: 50%; /* Centrage vertical */
    transform: translateY(-50%);
}

#newUEForm {
    display: none; /* Caché par défaut */
    margin-top: 20px;
}
input[readonly] {
  background-color: #f5f5f5;
  cursor: not-allowed;
}
  .modal-footer{
    margin-top:10px;
  }
  .modal-buttons {
    display : flex;
    justify-content : flex-end;
    gap : 10px;
    margin-top : 20px;
    padding-top : 20px;
    border-top : 1px solid #eee;
  }
  .hours-container {
    display : flex;
    gap : 1rem;
    margin-bottom : 1.5rem;
  }
  .hours-column {
    flex : 1;
    padding : 0.8rem;
    border-radius : 6px;
  }
  .hours-column:first-child {
    border : 1px solid #90caf9;
    background-color : #e3f2fd;
  }
  .hours-column:last-child {
    border : 1px solid #ce93d8;
    background-color : #f3e5f5;
  }
  .hours-column h4 {
    margin : 0 0 0.8rem 0;
    padding-bottom : 0.5rem;
    border-bottom : 1px solid rgba(0, 0, 0, 0.1);
    text-align : center;
    font-size : 0.9rem;
    color : #1976d2;
  }
  .hours-column .form-group {
    margin-bottom : 0.5rem;
  }
  .hours-column .form-group label {
    width : 80px;
    font-size : 0.9rem;
  }
  .hours-column .form-group input {
    width : 60px;
    padding : 4px;
  }
  .additional-hours {
    margin-top : 1.5rem;
    padding : 0.8rem;
    border : 1px solid #c5e1a5;
    border-radius : 6px;
    background-color : #f1f8e9;
  }
  .additional-hours .form-group {
    margin-bottom : 0.5rem;
  }

/* Styles des semestres */
.semesters-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.semester-section {
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
}

.semester-section h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.ue-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Responsive design pour les semestres */
@media (max-width: 1024px) {
    .semesters-container {
        grid-template-columns: 1fr;
    }
}


/* VET Management Styles */
.vet-list {
    margin-top: 2rem;
}

.niveau-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.vet-item {
    position: relative;
    padding: 1rem;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vet-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.vet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.vet-header h3 {
    font-size: 1rem;
    margin: 0;
    color: #2c3e50;
}

.vet-type {
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 800;
}

.vet-info {
    font-size: 0.9rem;
    color: #666;
    margin: 0.5rem 0;
    line-height: 1.4;
}

.edit-btn {
  color: white;
  border: none;
  padding: 16px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;

    text-decoration: none;
    color: white;
    background-color: #3498db;
    transition: background-color 0.2s ease;
}

.edit-btn:hover {
    background-color: #2980b9;
}

/* Couleurs spécifiques par niveau */
.vet-item.licence {
    border-left: 3px solid #3498db;
}

.vet-item.master {
    border-left: 3px solid #2ecc71;
}

.vet-item.lp {
    border-left: 3px solid #e74c3c;
}

.vet-type.licence {
    color: #3498db;
}

.vet-type.master {
    color: #2ecc71;
}

.vet-type.lp {
    color: #e74c3c;
}

/* Responsive design */
@media (max-width: 768px) {
    .niveau-group {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

.close-btn{
    position: absolute;
    top: 20px;
    right: 20px;
}

.vet-actions {
    display: flex;
    justify-content: space-between;  /* Changed from flex-end to space-between */
    gap: 10px;
    margin-top: 10px;
}

.effectif-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    order: 1;  /* Added to ensure it appears first */
}

.edit-btn {
    order: 2;  /* Added to ensure it appears second */
}
.vet-management-container {
  max-width: 100%;
}

.effectif-btn:hover {
    background-color: #45a049;
}

.vet-effectif {
    margin-top: 10px;
    color: #666;
}
.mention-selector {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.mention-selector .form-group {
    margin-bottom: 1rem;
}

.mention-selector select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
}

.mention-selector label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}
.synthesis-btn {
  background-color: #3498db;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s;
}

.synthesis-btn:hover {
  background-color: #2980b9;
}
.export-btn {
  background-color: #4CAF50;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s;
}

.export-btn:hover {
  background-color: #45a049;
}

.header-container {
  display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}
.header-container-visualisation {
  display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    margin-left: 100px;
    margin-right: 100px;
    text-align: center;
    margin-bottom: 2rem;
}
.header-container h2, .modal-header h2 {
    margin: 20px 0;
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 500;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.add-mention-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.add-mention-btn:hover {
    background-color: #27ae60;
}

.add-vet-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.add-vet-btn:hover {
    background-color: #27ae60;
}
.top-bar {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.logout-btn {
    background-color: #e74c3c;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
}

.logout-btn:hover {
    background-color: #c0392b;
}
.semester-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.semester-header h3 {
    margin: 0;
}

.add-semester-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: auto;
}

.add-semester-btn:hover {
    background-color: #c0392b;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.admin-container .header-actions {
    display: block;
    text-align: center;
}

.add-ue-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.add-ue-btn:hover {
    background-color: #27ae60;
}


.delete-vet-btn {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  order: 2;
}

.delete-vet-btn:hover {
  background-color: #c0392b;
}

.copy-vet-btn {
  background-color: #f7a50e;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
      text-decoration: none;

}

.copy-vet-btn:hover {
  background-color: #ae7409;
}
.btn-danger {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    color: white;
    background-color: #e74c3c;
    cursor: pointer;
}

.btn-danger:hover {
    background-color: #c0392b;
}

#delete-vet-message {
    margin: 20px 0;
    color: #2c3e50;
    text-align: center;
}

#mention_departments {
    width: 100%;
    min-height: 100px;
    padding: 8px;
}

#mention_departments option {
    padding: 4px;
}


.admin-btn {
  display: inline-block;
  width: 80%;
  padding: 1rem;
  background-color: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.admin-btn:hover {
    background-color: #2980b9;
}

.admin-btn.logout {
  background-color: #e74c3c;
}

.admin-btn.logout:hover {
  background-color: #c0392b;
}

.admin-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  align-items: center;
}

.user-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.success-message {
    padding: 10px;
    margin-bottom: 20px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
}

.error-message {
    padding: 10px;
    margin-bottom: 20px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
}

.user-form select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
}

/* Hamburger Menu Styles */
.hamburger-menu {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: #2c3e50;
    transition: 0.3s;
    z-index: 1000;
}

.hamburger-menu.active {
    left: 0;
}

.hamburger-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
}

.hamburger-button span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: #2c3e50;
    transition: 0.3s;
}

.hamburger-button.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: white;
}

.hamburger-button.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-button.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background-color: white;
}

.menu-items {
    padding: 60px 20px 20px;
}

.menu-items a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 10px;
    margin: 5px 0;
    border-radius: 4px;
    transition: 0.2s;
}

.menu-items a:hover {
    background-color: #34495e;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}

.overlay.active {
    display: block;
}
.filter-options {
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    cursor: pointer;
}
.optionnel{
  display:flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
margin-top:0.5em;
}
input[name="capacite"]{
  width: 50px;
}

input[id^="lmd6-"]{
  transform : scale(1.5);
}

/* Styles pour la description des listes */
.ue-lists-description {
    margin-top: 2rem;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ue-lists-description h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.ue-list-description {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #27ae60;;
}

.ue-list-description h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
}

.ue-list-description ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.ue-list-description li {
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ue-list-description .ue-code {
    font-weight: 600;
    color: #27ae60;
    padding: 0.2rem 0.5rem;
    background-color: #27ae5f40;
    border-radius: 3px;
}

.statut-obligatoire {
  background-color: #3498db10 !important;
  color: #3498db !important;
}

.statut-optionnel {
  background-color: #e67e2210 !important;
  color: #e67e22 !important;
}

/* Style the button that is used to open and close the collapsible content */
