@import url(https://fonts.googleapis.com/css2?family=Audiowide&display=swap);
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

body {
  /*background: var(--mdsdark) !important;*/
  background: #eee !important;
}

.gap-2 {
  gap: 12px;
}

.field-icon,
.remember-me {
  color: var(--text-secondary);
}

.main-footer,
.main-header {
  box-shadow: var(--shadow-1);
}

.feature-card:hover,
.project-card:hover {
  box-shadow: var(--shadow-2);
}

.auth-header,
.date-column,
.feature-card,
.footer-bottom,
.form-footer,
.hero,
.success-message {
  text-align: center;
}

.comment-text,
.empty-state,
.no-teacher {
  font-style: italic;
}

:root {
  --primary-color-rgb: 25, 118, 210;
  --mdscyan: #17a2b8;
  --pole-dev: #20c997;
  /* Informatique / Dev */
  --pole-design: #ffc107;
  /* Digital Design */
  --pole-marketing: #e83e8c;
  /* Marketing Digital / Ecommerce / Webmarket */
  --mdspurple: #6f42c1;
  --mdsdark: #343a40;
  --mdsteal: #20c997;

  /* Statistiques - Total/Demandes (Cyan) */
  --stat-total-primary: #26c6da;
  --stat-total-secondary: #00acc1;
  --stat-total-hover: #0097a7;

  /* Statistiques - En attente (Violet) */
  --stat-pending-primary: #ab47bc;
  --stat-pending-secondary: #8e24aa;

  /* Statistiques - À vérifier (Orange) */
  --stat-review-primary: #ff7043;
  --stat-review-secondary: #f4511e;

  /* Statistiques - Approuvées (Vert) */
  --stat-approved-primary: #66bb6a;
  --stat-approved-secondary: #43a047;

  /* Statistiques - Rejetées (Rouge foncé) */
  --stat-rejected-primary: #b71c1c;
  --stat-rejected-secondary: #c62828;

  /* Statistiques - Converties (Rouge) */
  --stat-converted-primary: #e53935;
  --stat-converted-secondary: #d32f2f;

  /* Ombres pour les badges */
  --stat-shadow: rgba(0, 0, 0, 0.15);
  --stat-shadow-hover: rgba(0, 0, 0, 0.2);
}

.admin-header h1 {
  font-family: 'Poppins', sans-serif;
  padding: 0.5rem 1rem;
}

#registerForm,
.dashboard-card .form-grid,
.student-info {
  display: flex;
  flex-direction: column;
}

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,
      var(--primary-light) 0,
      var(--primary-dark) 100%);
  padding: 1rem;
}

.material-input {
  position: relative;
  margin-bottom: 18px;
  width: 100%;
}

.field-icon {
  z-index: 2;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.material-input input[type="password"] {
  padding-right: 40px;
}

.auth-card {
  width: 100%;
  max-width: 500px;
  padding: 1rem;
  animation: 0.3s ease-out slideUp;
}

.form-grid,
.promo-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.logocontainer,
.remember-me {
  display: flex;
  align-items: center;
}

.logocontainer {
  width: 40%;
  gap: 1rem;
}

.logo {
  width: 12%;
}

.auth-header {
  margin-bottom: 2rem;
}

.auth-header h1 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
  font-family: 'Poppins', sans-serif;
}

.auth-header p {
  color: var(--text-primary);
}

.form-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.form-footer a:hover,
.task-link:hover {
  text-decoration: underline;
}

.remember-me {
  margin: 1rem 0;
}

.remember-me input[type="checkbox"] {
  margin-right: 0.5rem;
}

/* Bouton nouvelle demande */
.new-request-btn,
.btn-prim {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  border: 0;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg,
      var(--stat-total-primary),
      var(--stat-total-secondary));
  color: white;
  border-radius: 5px !important;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  font-family: Poppins;
}

.material-icons.btn-prim {
  font-family: 'Material Icons';
}

.new-request-btn:hover,
.btn-prim:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(38, 198, 218, 0.3);
  background: linear-gradient(135deg, #00acc1, #0097a7);
  color: #fff;
}

.new-request-btn .material-icons,
.btn-prim .material-icons {
  font-size: 2rem;
}

/* Responsive */
@media (max-width: 1200px) {
  .stats-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .stats-badges {
    justify-content: center;
  }

  .new-request-btn {
    justify-content: center;
    width: 100%;
  }
}

.material-button {
  margin-top: 1rem;
  letter-spacing: normal;
  font-weight: 600;
  background-color: var(--mdscyan) !important;
  color: #efefef !important;
  font-family: Poppins !important;
}

.material-button.small.mdphub_btn {
  margin: 0;
  border-radius: 5px;
}

/* Bouton Voir (Cyan - utilise les couleurs total) */
.material-button.btn-view {
  background: linear-gradient(135deg,
      var(--stat-total-primary),
      var(--stat-total-secondary));
  box-shadow: none;
}

.material-button.btn-view:hover {
  background: linear-gradient(135deg,
      var(--stat-total-secondary),
      var(--stat-total-hover));
  box-shadow: 0 4px 12px rgba(38, 198, 218, 0.3);
}

.material-button.btn-prim.danger,
.btn-prim.danger {
  background: linear-gradient(135deg,
      var(--stat-rejected-primary),
      var(--stat-rejected-secondary));
}

/* Bouton Modifier (Orange - utilise les couleurs review) */
.material-button.btn-edit,
.btn-secondary {
  background: linear-gradient(135deg,
      var(--stat-review-primary),
      var(--stat-review-secondary));
  box-shadow: none;
}

.material-button.btn-edit:hover,
.btn-secondary:hover {
  background: linear-gradient(135deg,
      var(--stat-review-secondary),
      var(--stat-review-primary));
  box-shadow: 0 4px 12px rgba(255, 112, 67, 0.3);
}

.material-button.small .material-icons {
  font-size: 1.1rem;
}

.action-buttons .material-button {
  margin-top: 0;
}

.error-shake {
  animation: 0.5s shake;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

.success-message {
  padding: 2rem;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--success);
}

.domain-badge {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  margin: 0 0.25rem;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container {
  width: 100%;
  max-width: 1366px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

main.container {
  padding: 0;
}

.progress-bar,
.progress-section,
.project-progress,
h1,
h2,
h3 {
  margin: 1rem 0;
}

.main-header {
  background-color: var(--surface);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.section-header {
  margin: 1rem 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-avatar-img,
.rf-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.material-alert.success {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border: none;
  background: 0 0;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s;
  color: var(--text-primary);
}

.teacher-avatar,
.user-avatar {
  align-items: center;
  font-weight: 500;
}

.kanban-tasks.drag-over,
.label-checkbox:hover,
.password-accordion-header:hover,
.simple-accordion-header:hover,
.student-checkbox:hover,
.user-button:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: #fff;
  display: flex;
  justify-content: center;
  font-size: 0.9rem;
}

.header-content {
  margin: 0 auto;
  padding: 1rem 0 !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/*.header-content a:first-child span {
  font-family: Audiowide, cursive !important;
  font-size: 1.5rem;
}*/
.main-footer {
  background-color: var(--surface);
  margin-top: 4rem;
  padding: 3rem 1.5rem;
}

.footer-content {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
  gap: 2rem;
  max-width: 1366px;
}

.footer-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-actions {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.footer-actions h4 {
  text-align: left;
}

.footer-bottom {
  max-width: 1366px;
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.flash-message {
  max-width: 1366px;
  margin: 1rem auto;
  padding: 1rem 1.5rem;
  border-radius: 4px;
}

.hero {
  background: url(../img/AlbedoBase_XL_A_sleek_and_efficient_software_depicting_a_futur_2.jpg) center/cover;
  color: #fff;
  padding: 4rem 2rem;
  width: 100%;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 10px;
}

.hero-content .material-button {
  font-family: Rubik;
  letter-spacing: normal;
}

.material-button.small,
.project-tabs .tab,
.status-select,
button {
  font-family: var(--font-text);
}

.hero-content .outlined {
  color: #add8e6;
  border-color: #add8e6;
}

.hero-content .outlined:hover {
  color: #fff;
  border-color: #fff;
}

.promo-stats,
.student-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.hero h1,
.profile-details h1,
.project-details-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.projectviewed {
  background-color: var(--primary-color);
  padding: 1rem;
  border-radius: 5px;
  color: #fff;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.features {
  padding: 4rem 2rem;
  background: var(--background);
}

.feature-card,
.promo-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-1);
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.dashboard {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.promo-grid,
.recent-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(25%, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.promo-card {
  padding: 1.5rem;
  transition: 0.2s;
}

.kanban-task:hover,
.owner-card:hover,
.project-card:hover,
.promo-card:hover,
.student-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.promo-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.teacher-avatar {
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  font-size: 1.25rem;
}

.no-teacher,
.specialization,
.teacher-email {
  color: var(--text-secondary);
}

.specialization {
  font-size: 0.875rem;
  margin: 0.5rem 0;
}

.teacher-info {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--background);
  border-radius: 4px;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.teacher-info.teacher-info-dashboard {
  flex-direction: column;
  background: 0 0;
  justify-content: center;
  align-items: flex-start;
  margin: unset;
  padding: unset;
  gap: unset;
}

.assigned-teacher,
.color-input-group,
.task-title-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.student-details,
.teacher-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.no-teacher {
  margin: 0;
}

.font-selector input:focus+.search-icon,
.project-tabs .tab.active,
.stat-value,
.status-select option[value="en cours"] {
  color: var(--primary-color);
}

.promo-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 1rem;
}

.mb-3,
.modal .material-input,
.progress-bar {
  margin-bottom: 1.5rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
}

.student-item,
.task-meta-item,
.task-status {
  display: flex;
  align-items: center;
}

.deadline-form,
.task-tooltip {
  max-width: 300px;
}

.promo-stats {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.promo-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.color-picker,
.danger-info,
.student-info-cell,
.student-item,
.supervisor-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.student-avatar {
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-info h3,
.student-details h4,
.student-info h3,
.student-main-info h4 {
  margin: 0;
  font-size: 1rem;
}

.member-info {
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  padding-left: 20px;
}


.settings-item-content p,
.student-details p {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.student-list-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

.teacher-students-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.task-card-header,
.teacher-header {
  padding: 1rem;

  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.teacher-header {
  background: linear-gradient(135deg, var(--stat-total-primary), var(--stat-total-secondary));
}

.color-value,
.empty-state,
.filename-input label,
.stat-label,
.student-email,
.student-stats,
.task-assignee,
.upload-placeholder span:not(.material-icons) {
  color: var(--text-secondary);
}

.supervisor-info h2,
.teacher-info h3 {
  margin: 0;
  font-size: 1.25rem;
}

.teacher-email {
  font-size: 0.875rem;
  opacity: 0.9;
  margin: 0.25rem 0 0;
}

.student-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.875rem;
}

.students-list {
  max-height: 400px;
  overflow-y: auto;
  padding: 0.5rem;
}

.student-item:last-child {
  border-bottom: none;
}

.student-main-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.admin-section .student-main-info {
  margin-bottom: 0;
  padding: 5px 10px;
  background: linear-gradient(135deg, var(--stat-total-primary), var(--stat-total-secondary));
  color: #fff;
  border-radius: 5px;
}

.student-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
}

.student-stats span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.body-preview,
.student-stats .material-icons {
  font-size: 1rem;
}

.student-item {
  padding: 1rem;
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s;
}

.student-promo-tag {
  position: absolute;
  right: -100%;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px 0 0 4px;
  font-size: 0.875rem;
  box-shadow: var(--shadow-1);
  transition: right 0.3s;
  z-index: 1;
  white-space: nowrap;
}

.accordion-header:hover,
.gantt-row:hover,
.student-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.student-item:hover .student-promo-tag {
  right: 10px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.kanban-container,
.project-stats {
  grid-template-columns: repeat(3, 1fr);
}

.project-card-header {
  padding: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.project-title-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.project-creator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}



.hero-stat-mini {
  background: linear-gradient(135deg, rgba(23, 163, 184, 0.15) 0%, rgba(18, 132, 150, 0.12) 50%, rgba(16, 160, 182, 0.15) 100%) !important;
  backdrop-filter: blur(15px);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  transition: all 0.3s;
  border: 1px solid var(--stat-total-primary);
  min-width: 80px;
  text-align: center;
}

.owner-card .hero-stat-mini {
  background: rgba(0, 0, 0, 0.15);
}

/* Hero image upload button */
.project-details-header {
  position: relative;
  background-color: var(--primary-color);
  color: #fff;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 8px;
  transition: background-image 0.3s ease;
}

.project-details-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 5px;
  z-index: 1;
}

.project-details-header>* {
  position: relative;
  z-index: 2;
}

.hero-image-upload-btn {
  position: absolute;
  left: 100%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 3;
}

.hero-image-upload-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-image-upload-btn .material-icons {
  color: var(--primary-color);
  font-size: 24px;
}

.hero-image-upload-btn.uploading {
  pointer-events: none;
  opacity: 0.6;
}

.hero-image-upload-btn.uploading .material-icons {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Amélioration du contraste du texte sur l'image */
.project-details-header h1,
.project-details-header p,
.project-meta-item {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.creator-avatar,
.creator-avatar-placeholder {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.creator-avatar-placeholder {
  background-color: var(--primary-light);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.project-details-header,
.project-header {
  background: var(--primary-color);
}

.project-card-content {
  min-height: 450px;
  justify-content: space-between;
  display: flex;
  flex-direction: column;
}

.project-card-content,
.task-content,
.task-details-page .task-card {
  padding: 1rem;
}

.progress-info,
.project-meta {
  display: flex;
  justify-content: space-between;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 1rem;
  color: var(--text-secondary);
  width: 100%;
}

.progress-percentage {
  font-weight: 500;
  color: var(--primary-color);
}

.project-deadline,
.task-deadline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.project-deadline.overdue {
  color: var(--error);
}

.project-card-actions {
  padding: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  gap: 0.5rem;
}

.project-details-header {
  color: #fff;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 5px;
  box-shadow: var(--shadow-1);
}

.project-details-header .material-button {
  background-color: var(--primary-dark) !important;
}

.project-details-header .material-button:hover {
  background-color: var(--primary-light) !important;
}

.project-meta {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
}

.project-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  width: 100%;
  border-radius: 5px;
}

.project-header {
  padding: 16px;
  color: #fff;
}

.project-content {
  padding: 16px;
}

.project-stats {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.stat-item {
  padding: 8px;
  background: var(--background);
  border-radius: 4px;
}

.progress-fill {
  background: var(--primary-color);
  border-radius: 2px;
}

.project-actions {
  display: flex;
  gap: 8px;
  padding: 16px;
}

.project-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  border-radius: 5px;
  height: 75px;
}

.standard-milestones-section .project-tabs {
  flex-wrap: nowrap;
}


.project-tabs .tab {
  padding: 1rem 2rem;
  border: none;
  background: 0 0;
  cursor: pointer;
  color: var(--text-secondary);
  font-weight: 500;
  width: 100%;
  justify-content: center;
  position: relative;
  transition: color 0.3s;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.standard-milestones-section .project-tabs .tab {
  padding: .5rem;
  font-size: 1.1rem;
}


.tab.active {
  color: #fff !important;
  text-shadow: 1px 1px 1px rgba(51, 51, 51, 0.5);
  background: linear-gradient(135deg,
      var(--stat-total-primary),
      var(--stat-total-secondary));
}

.tab.active:first-child {
  border-radius: 5px 0 0 5px;
}

.tab.active:last-child {
  border-radius: 0 5px 5px 0;
}

.project-tabs .tab .material-icons {
  font-size: 20px;
  display: flex;
  align-items: center;
}

.tab-content {
  display: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.task-bar,
.task-card.has-labels {
  transition: 0.3s;
}

.tab-content.active {
  display: block;
  opacity: 1;
}

.tasks-container {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-1);
  margin-bottom: 2rem;
}

.tasks-grid {
  display: grid;
  gap: 1rem;
}

.task-title-section h3 {
  margin: 0;
  flex: 1;
}

.task-description {
  margin: 1rem 0;
  color: var(--text-secondary);
}

.task-card {
  box-shadow: var(--shadow-1);
  position: relative;
  transform: translateY(0);
  width: 100%;
}

.task-card>* {
  position: relative;
  z-index: 1;
}

.task-labels {
  display: flex;
  flex-wrap: wrap;
}

.task-label-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.task-label-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.task-card.has-labels::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.07;
  z-index: 0;
  transition: opacity 0.3s;
}

.task-card.has-labels:hover {
  transform: translateX(4px) translateY(-2px);
}

.task-card.has-labels:hover::before {
  opacity: 0.12;
}

.task-card.has-labels.single-label::before {
  background-color: var(--label-color);
}

.task-card.has-labels.multiple-labels::before {
  background: linear-gradient(135deg, var(--label-colors));
}

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  padding-right: 32px;
}

.task-status {
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border-radius: 0 8px;
  opacity: 0.8;
}

.gantt-header,
.task-info {
  background: #fff;
  position: sticky;
  display: flex;
}

.task-meta .material-icons {
  font-size: 22px;
}

.task-meta-item.creator {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
}

.task-details-page .task-meta-item,
.task-meta-item.creator .material-icons {
  font-size: 0.75rem;
}

.task-details-page .task-title-section {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.visualization-container {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow-1);
  margin-top: 1rem;
}

.visualization-header {
  margin-bottom: 2rem;
  padding: 1rem;
}

.filter-section {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.dependency-arrows {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.gantt-wrapper {
  max-width: 100%;
  overflow: hidden;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.gantt-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Indicateur de défilement */
.gantt-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.05), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.gantt-container:hover::after {
  opacity: 1;
}

.gantt-table {
  border-collapse: collapse;
  width: max-content;
  min-width: 100%;
  background: white;
}

.gantt-table th,
.gantt-table td {
  border: 1px solid #e0e0e0;
  height: 40px;
  z-index: 10;
  min-width: 40px;
  padding: 0;
  position: relative;
}

.fixed-column {
  position: sticky;
  left: 0;
  background: white;
  z-index: 30;
  padding: 8px 16px !important;
  min-width: 150px !important;
  white-space: nowrap;
  border-right: 2px solid #e0e0e0 !important;
}

.header-row th {
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}

.header-row th.fixed-column {
  z-index: 3;
}

.date-cell {
  text-align: center;
  min-width: 40px !important;
  padding: 4px !important;
}

.date-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.8rem;
}

.date-day {
  font-weight: bold;
  font-size: 0.7rem;
  text-transform: uppercase;
  text-align: center;
}

.date-day::first-letter {
  text-transform: uppercase;
}

.date-month {
  font-size: 0.7rem;
  color: #666;
}

.weekend {
  background-color: #f8f9fa;
}

.today {
  background-color: #e3f2fd;
}

.task-bar {
  position: absolute;
  top: 20px;
  bottom: 5px;
  left: 0;
  right: 0;
  background-color: #2196f3;
  opacity: 0.8;
}

.task-bar.terminé {
  background-color: #4caf50;
}

.task-bar.en_cours {
  background-color: #ff9800;
}

.task-bar:hover {
  opacity: 1;
  cursor: pointer;
}

.task-name {
  font-weight: 500;
}

.task-assignee {
  color: #666;
  font-size: 0.9em;
}

.task-duration {
  text-align: center;
  color: #666;
  font-size: 0.9em;
}

/* Personnalisation de la scrollbar */
.gantt-container::-webkit-scrollbar {
  height: 8px;
}

.gantt-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.gantt-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.gantt-container::-webkit-scrollbar-thumb:hover {
  background: #666;
}

.dependency-path {
  fill: none;
  stroke: #3b7add;
  stroke-width: 2;
  opacity: 0.7;
}

.activity-content,
.comment-content,
.comment-form .material-input,
.document-info,
.gantt-timeline,
.member-info,
.milestone-content,
.settings-item-content,
.task-content {
  flex: 1;
}

.document-info {
  width: 100%;
}

.task-bar {
  position: absolute;
  height: 24px;
  border-radius: 0;
  top: 50%;
  transform: translateY(-50%);
}

.kanban-task,
.timeline-content {
  border-radius: 8px;
  background: #fff;
}

.status-dot.a-faire,
.task-bar.a-faire {
  background-color: #fdd835;
}

.status-badge.en-cours,
.status-dot.en-cours,
.task-bar.en-cours {
  background-color: #2196f3;
}

.status-badge.terminé,
.status-dot.terminé,
.task-bar.terminé {
  background-color: #4caf50;
}

.task-bar.blocked {
  opacity: 0.7;
}

.task-bar.blocked::before {
  content: "🔒";
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
}

.date-column {
  min-width: 50px;
  padding: 0.5rem;
  font-size: 0.875rem;
  border-left: 1px solid rgba(0, 0, 0, 0.05);
}

.kanban-container {
  display: grid;
  gap: 1.5rem;
  min-height: 500px;
}

.kanban-column {
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  padding: 1rem;
}

.kanban-header {
  font-weight: 500;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--primary-color);
}

.kanban-tasks {
  min-height: 200px;
  transition: background-color 0.2s;
}

.kanban-task {
  padding: 1rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-1);
  cursor: move;
  transition: transform 0.2s, box-shadow 0.2s;
}

.kanban-task.dragging {
  opacity: 0.5;
  transform: scale(0.95);
}

.timeline-container {
  position: relative;
  padding: 2rem 0;
}

.timeline-item {
  display: flex;
  gap: 2rem;
  padding: 1.5rem;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 120px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: rgba(0, 0, 0, 0.1);
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 116px;
  top: 24px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary-color);
}

.task-tooltip,
.task-tooltip::after {
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
}

.timeline-date {
  min-width: 100px;
  font-weight: 500;
  text-align: right;
}

.timeline-content {
  flex: 1;
  padding: 1rem;
  box-shadow: var(--shadow-1);
  margin-left: 2rem;
}

.timeline-content h4 {
  margin: 0 0 0.5rem;
  color: var(--primary-color);
}

.task-tooltip {
  top: -70px;
  background: #fff;
  padding: 0.75rem;
  border-radius: 4px;
  box-shadow: var(--shadow-2);
  z-index: 10;
  width: max-content;
}

.task-tooltip::after {
  content: "";
  bottom: -8px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #fff;
}

@media (max-width: 1024px) {
  .kanban-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .filter-section {
    flex-direction: column;
    align-items: stretch;
  }

  .visualization-header {
    padding: 1rem 0.5rem;
  }

  .timeline-item {
    flex-direction: column;
    gap: 1rem;
    padding-left: 3rem;
  }

  .timeline-item::before {
    left: 1rem;
  }

  .timeline-item::after {
    left: 0.75rem;
  }

  .timeline-date {
    text-align: left;
  }

  .timeline-content {
    margin-left: 0;
  }
}

.about-header,
.count-label,
.empty-state,
.label-count,
.material-divider,
.meta-item,
.milestone-date,
.rf-card,
.stat-card,
.stat-item,
.task-meta-item,
.text-center,
.upload-zone {
  text-align: center;
}

.visualization-view {
  transition: opacity 0.3s;
}

.avatar-input,
.font-input-container,
.visualization-view:not(:first-child) {
  display: none;
}

.drag-over {
  background-color: rgba(var(--primary-color-rgb), 0.1);
  border: 2px dashed var(--primary-color);
}

.status-select {
  width: auto;
  padding: 8px 32px 8px 16px;
  font-size: 0.875rem;
  border: 2px solid rgba(255, 255, 255, 0.23);
  border-radius: 4px;
  background-color: transparent;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='rgba(0,0,0,0.54)' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 20px;
  min-width: 120px;
  color: #fff;
}

.status-select:hover {
  border-color: rgba(0, 0, 0, 0.3);
  background-color: rgba(0, 0, 0, 0.3);
}

.status-select:focus {
  border-color: var(--primary-color);
  border-width: 2px;
  outline: 0;
  padding: 7px 31px 7px 15px;
  animation: 0.2s ease-out select-focus;
}

.status-select option {
  padding: 16px;
  font-size: 0.875rem;
  background-color: #fff;
}

.status-select option[value="à faire"] {
  color: #f57c00;
}

.status-select option[value="terminé"] {
  color: #4caf50;
}

.status-select:disabled {
  border-color: rgba(0, 0, 0, 0.12);
  background-color: rgba(0, 0, 0, 0.04);
  color: rgba(0, 0, 0, 0.38);
}

.task-label-badge {
  transition: transform 0.2s;
}

.task-label-badge:hover,
.upload-preview:hover img {
  transform: scale(1.05);
}

.milestone-item:hover,
.settings-item:hover,
.task-item:hover {
  transform: translateX(4px);
}

.task-card[data-status="terminé"] .task-header {
  background-color: #4caf50;
  /* Vert */
  color: white;
}

.task-card[data-status="terminé"] .task-header h3 {
  color: white;
}

.task-card .task-header {
  transition: background-color 0.3s ease, color 0.3s ease;
}

.task-card[data-status="en cours"] {
  border: 1px solid rgba(var(--primary-color-rgb), 0.2);
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1rem;
}

.document-card,
.member-card {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: var(--shadow-1);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.document-card {
  flex-direction: column;
}

.member-avatar,
.teacher-badge {
  align-items: center;
  color: #fff;
  font-weight: 500;
}

.member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  justify-content: center;
}

.list-role {
  display: flex;
  align-items: start;
  gap: 0.5rem;
}

.role-badge,
.teacher-badge {
  display: inline-flex;
}

.role-badge.owner,
.status-badge {
  color: #fff;
}

.role-badge.leader {
  background-color: #2962ff;
  color: #fff;
}

.role-badge.member {
  background-color: #0097a7;
  color: #fff;
}

.teacher-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  background-color: #f50057;
}

.settings-grid {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
}

.settings-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  transition: 0.2s;
  text-decoration: none;
  color: var(--text-primary);
}

.settings-item:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.settings-item .material-icons {
  font-size: 24px;
  color: var(--primary-color);
  margin-right: 1rem;
}

.document-info h3,
.project-item-header h3,
.settings-item-content h3,
.task-content h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.settings-item-content h3 {
  font-size: 1.3rem;
  font-family: 'Poppins', sans-serif;
}

.danger-zone {
  border: 1px solid #ffcdd2;
}

.danger-item,
.milestone-item {
  border-radius: 8px;
  display: flex;
}

.danger-zone .card-header,
.danger-zone .material-icons,
.task-meta-item.overdue {
  color: #d32f2f;
}

.danger-content,
.modal form {
  padding: 1.5rem;
}

.danger-content {
  padding: 1.5rem 0;
}

.danger-item {
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background-color: #ffebee;
}

.danger-text h3 {
  margin: 0;
  color: #d32f2f;
  font-size: 1rem;
  font-weight: 500;
}

.danger-text p {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: #d32f2f;
}

.danger-footer {
  padding: 1rem 1.5rem;
  background-color: #ffebee;
  border-top: 1px solid #ffcdd2;
}

.danger-footer p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.875rem;
}

.deadline-section {
  padding: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.branding-section,
.milestones-section,
.notification-section {
  padding: 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.activity-timeline,
.expertise-grid,
.milestones-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.milestone-item {
  gap: 1.5rem;
  padding: 1.5rem;
  background: #fff;
  box-shadow: var(--shadow-1);
  transition: transform 0.2s;
}

.milestone-date {
  min-width: 120px;
  padding: 0.5rem;
  background: var(--primary-color);
  color: #fff;
  border-radius: 4px;
  font-weight: 500;
}

.milestone-content h3,
.owner-info h3,
.task-card-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.milestone-content p {
  margin: 0.5rem 0;
  color: var(--text-secondary);
}

.milestone-meta {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.completed-badge {
  background: var(--success);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
}

.milestone-item.overdue .milestone-date {
  background: var(--error);
}

.document-actions,
.milestone-actions {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  width: 100%;
}

.document-actions .material-button {
  width: 100%;
  margin: 0;
}

.notification-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.notification-group {
  background: rgba(0, 0, 0, 0.02);
  padding: 1.5rem;
  border-radius: 8px;
  transition: 0.2s;
}

.notification-group:hover {
  background: rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.notification-group h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.notification-group h3 .material-icons {
  font-size: 20px;
}

.notification-checkbox {
  display: flex;
  align-items: center;
  margin: 0.75rem 0;
}

.label-checkbox input[type="checkbox"],
.notification-checkbox input[type="checkbox"] {
  margin-right: 0.75rem;
}

.notification-checkbox label {
  color: var(--text-primary);
  font-size: 0.9rem;
}

.form-actions {
  gap: 1rem;
}

@media (max-width: 768px²) {
  .notification-options {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions .material-button {
    width: 100%;
  }
}

.admin-header,
.flex-between,
.profile-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-container {
  overflow-x: auto;
  margin: 0 -1rem;
}

.material-table {
  width: 100%;
  border-collapse: collapse;
}

.material-table td,
.material-table th {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.material-table th {
  font-weight: 500;
  color: var(--text-secondary);
}

.delete-confirmation-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-1);
  padding: 2rem;
  max-width: 600px;
  margin: 2rem auto;
  text-align: center;
}

.warning-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.warning-text {
  color: var(--error);
  font-weight: 500;
  margin-bottom: 1rem;
}

.warning-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.warning-list li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
}

.warning-list li:before {
  content: "•";
  color: var(--error);
  position: absolute;
  left: 0;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.documents-card,
.mt-3 {
  margin-top: 1.5rem;
}

.accordion,
.modal-actions,
.mt-4 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-4,
.specialization-section {
  margin-bottom: 2rem;
}

@media (max-width: 1400px) {

  .container,
  .flash-message,
  .footer-bottom,
  .footer-content,
  .header-content {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (max-width: 768px) {

  .logo,
  .project-details-header .material-button {
    width: 100%;
  }

  .promos-grid,
  .student-list-cards {
    grid-template-columns: 1fr;
  }

  .promo-header,
  .student-main-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }


  .header-content {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .dropdown-menu {
    top: 100% !important;
    right: 0px;
    height: 100svh;
    border-radius: 0 !important;
  }

  .promo-actions {
    flex-wrap: wrap;
  }

  .modal-content {
    width: 90%;
    max-width: none;
    margin: 1rem;
  }

  .student-stats {
    flex-direction: column;
    gap: 0.25rem;
  }

  .tasks-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
  }

  .task-info {
    min-width: 150px;
  }

  .gantt-container {
    font-size: 0.875rem;
  }

  .date-column {
    min-width: 40px;
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    margin-left: 30px;
  }

  .flex-between,
  .project-tabs,
  .timeline-item:nth-child(odd) {
    flex-direction: column;
  }

  .timeline-container::before {
    left: 0;
  }

  .timeline-content {
    width: 100%;
    margin: 1rem 0;
  }

  .timeline-item .timeline-content::before {
    left: -40px !important;
    right: auto !important;
  }

  .timeline-date {
    width: auto;
    margin-left: -30px;
  }

  .container,
  .flash-message,
  .footer-bottom,
  .footer-content,
  .header-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .recent-projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(50%, 1fr));
  }

  .hero {
    padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .features {
    padding: 2rem 1rem;
  }

  .project-meta {
    flex-direction: column;
    gap: 1rem;
  }

  .project-tabs {
    height: auto;
  }

  #documents {
    padding: .5rem 1rem;
  }
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  padding: 1rem;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: 0.3s fadeIn;
}

.modal-content {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-3);
  width: 100%;
  max-width: 700px;
  animation: 0.3s slideUp;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.manage-page .material-button,
.modal-header h2 {
  margin: 0;
}

.modal-close {
  background: 0 0;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-secondary);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.form-section {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-1);
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-selector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.project-select-card {
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  text-decoration: none;
  color: var(--text-primary);
  transition: 0.2s;
}

.project-select-card.active,
.project-select-card:hover {
  background-color: rgba(var(--primary-color-rgb), 0.08);
  border-color: var(--primary-color);
}

.add-members-section,
.owner-controls {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.project-select-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.shrinkCol div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.shrinkCol .material-button {
  margin-top: 0.2rem;
}

.student-avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.student-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 0.875rem;
}

.students-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.student-checkbox {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: 0.2s;
}

.student-email {
  font-size: 12px;
}

.student-checkbox input[type="checkbox"] {
  margin-right: 1rem;
}

.role-select {
  padding: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  background-color: #fff;
  transition: 0.2s;
}

.role-select:disabled {
  background-color: rgba(0, 0, 0, 0.04);
  cursor: not-allowed;
  opacity: 0.7;
}

.add-members-section {
  padding-top: 2rem;
}

.member-controls {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.owner-controls {
  margin-top: 1rem;
  padding-top: 1rem;
}

.project-info {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--background);
  border-radius: 8px;
}

.project-description {
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.material-input textarea {
  height: 100px;
}

.material-input input,
.material-input select {
  padding: 5px 16px 4px !important;
}

.material-button.small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  min-width: auto;
  height: auto;
  letter-spacing: normal;
}

/*.material-button.danger:hover {
  background-color: #d32f2f !important;
}*/

.material-button.danger.outlined:hover {
  background-color: rgba(176, 0, 32, 0.08);
}

.profile-header-card {
  background: var(--primary-color);
  color: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: var(--shadow-1);
}

.profile-avatar,
.promo-badge {
  background-color: var(--primary-light);
  color: #fff;
  font-weight: 500;
}

.profile-avatar,
.profile-avatar-img {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.promo-badge {
  text-shadow: #d3d3d3;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85em;
  margin-right: 8px;
}

.profile-avatar-container {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 10px;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--surface);
}

.avatar-upload-button,
.profile-avatar {
  border: 2px solid var(--surface);
  display: flex;
}

.profile-avatar {
  align-items: center;
  justify-content: center;
}

.avatar-upload-button {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 32px;
  background-color: var(--primary-color);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s ease-in-out;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.activity-item,
.avatar-uploading,
.gantt-body,
.upload-preview,
.upload-zone {
  position: relative;
}

.avatar-upload-button .material-icons {
  color: #fff;
  font-size: 16px;
}

.avatar-upload-button:hover {
  background-color: var(--primary-dark);
  transform: scale(1.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.dashboard-card,
.project-item:hover {
  box-shadow: var(--shadow-1);
}

.avatar-uploading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
}

.avatar-uploading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 2px solid transparent;
  border-top-color: #fff;
  border-radius: 50%;
  animation: 1s linear infinite spin;
  z-index: 3;
}

.profile-info {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.profile-details h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 500;
}

.profile-email {
  color: rgba(255, 255, 255, 0.9);
  margin: 0.25rem 0;
}

.profile-badges {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.profile-date {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

.owner-email,
.project-link,
.project-meta {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.dashboard-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.card-header h2 {
  margin: 0;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 20px;
}

.active-projects-list,
.upcoming-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.progress-info,
.project-item-header {
  justify-content: space-between;
  display: flex;
}

.project-item {
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  transition: box-shadow 0.2s;
}

.project-item-header {
  align-items: center;
  margin-bottom: 1rem;
}

.progress-info {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.project-meta {
  display: flex;
  justify-content: space-between;
}

.dependency-title,
.project-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.task-item {
  display: flex;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.status-dot {
  margin-top: 0.25rem;
}

.owner-email,
.project-link {
  margin: 0.25rem 0;
}

.activity-item {
  display: flex;
  gap: 1rem;
}

.activity-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1rem;
  top: 2rem;
  bottom: -1.5rem;
  width: 2px;
  background: rgba(0, 0, 0, 0.1);
}

.activity-icon {
  width: 2rem;
  height: 2rem;
  background: var(--primary-light);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-content p {
  margin: 0;
  line-height: 1.4;
}

.activity-date,
.comment-date,
.meta-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.profile-form {
  max-width: 100%;
}

.password-section h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 500;
}

.member-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.label-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
}

.labels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.label-checkbox {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: 0.2s;
}

.owner-stats,
.project-actions,
.project-meta,
.student-stats {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.owner-stats,
.project-meta,
.student-stats,
.user-expertise-section h2 {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.label-name {
  font-size: 0.875rem;
  font-weight: 500;
}

.material-icons,
.stat-icon {
  font-size: 25px;
}

.stat-icon .material-icons-outlined {
  color: black;
  font-size: 3rem;
}

.owners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25%, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.owner-card,
.student-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow-1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.owner-avatar,
.owner-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: var(--shadow-1);
}

.owner-card-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.owner-info p {
  font-size: .75rem;
  padding: 5px 15px;
  background: linear-gradient(135deg, rgba(23, 163, 184, 0.15) 0%, rgba(18, 132, 150, 0.12) 50%, rgba(16, 160, 182, 0.15) 100%) !important;
  border-radius: 5px;
  font-family: 'JetBrains Mono', monospace;
  color: rgb(16, 119, 134);
}

.owner-avatar-img {
  object-fit: cover;
}

.owner-avatar {
  background-color: var(--primary-light);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 1.2rem;
}

.owner-stats {
  margin: 1rem 0;
  padding: 1rem 0;
}

.stat-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.stat-value {
  display: block;
  color: var(--primary-color);
}

.activity-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  padding: 0.5rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.04);
}

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.student-avatar,
.student-avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.activity-dot.low {
  background-color: #ffb74d;
}

.activity-dot.medium {
  background-color: #64b5f6;
}

.activity-dot.high {
  background-color: #81c784;
}

.activity-indicator.large {
  justify-content: center;
  padding: 0.75rem;
  font-weight: 500;
}

.owner-card-actions {
  display: flex;
  justify-content: end;
  margin-top: 1.5rem;
}

.role-badge.student,
.role-badge.teacher {
  background-color: #6200ea;
}

.owner-info,
.upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.table-view .owner-avatar {
  width: 36px;
  height: 36px;
  font-size: 1rem;
}

.students-grid-dashboard {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1rem;
}

.student-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.student-avatar-img {
  object-fit: cover;
}

.student-avatar {
  background-color: var(--primary-light);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 1rem;
}

.student-info p,
.text-secondary {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.student-info p {
  margin: 0.25rem 0 0;
}

.student-stats {
  display: flex;
  justify-content: space-around;
  padding: 1rem 0;
  margin: 1rem 0;
}

.student-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.container {
  padding-bottom: 3rem;
}

.admin-header {
  background-color: #fff;
  padding: 0.5rem;
  border-radius: 5px;
  box-shadow: var(--shadow-1);
  margin: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-header h1 {
  margin: 0;
  color: #1a237e;
  font-size: 2rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-header h1 .material-icons {
  color: #1976d2;
}

.user-info h1 {
  margin: 0;
  font-size: 1.75rem;
  color: var(--text-primary);
}

.text-secondary {
  margin: 0.25rem 0;
}

.role-badge,
.teacher-badge {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  margin-top: 0;
}

.member-info h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
}

.project-card,
.stat-card {
  border-radius: 8px;
  padding: 0.5rem;
  background: #fff;
  box-shadow: var(--shadow-1);
}

.role-badge.owner {
  background-color: #2962ff;
}

.stats-grid,
.stats-grid_requests {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  transition: transform 0.2s;
}

.stat-value {
  font-size: 2rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-details,
.stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.stat-details {
  margin-top: 0.5rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.project-card {
  transition: transform 0.2s, box-shadow 0.2s;
  animation: 0.3s forwards fadeIn;
  animation-delay: calc(var(--animation-order, 0) * 100ms);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-radius: 5px;
}

.password-accordion-header h3,
.project-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
}

.project-description {
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.project-meta {
  display: flex;
  justify-content: space-around;
  margin: 1rem 0;
  padding: 1rem 0;
}

.meta-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary-color);
}

.progress-text {
  font-size: 0.875rem;
  color: #fff;
}

.project-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
}

.status-badge.en-pause {
  background-color: #ff9800;
}

.empty-state {
  padding: 4rem 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-1);
  margin-top: 2rem;
}

.empty-state-icon {
  font-size: 3rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.empty-state h3 {
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}

.empty-state p {
  color: var(--text-secondary);
  margin: 0;
}

.profile-label-badge,
.profile-label-more {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  color: #fff;
}

.profile-labels {
  display: inline-flex;
  gap: 0.5rem;
  margin-left: 0.5rem;
}

.profile-label-badge {
  font-weight: 500;
}

.profile-label-more {
  background-color: rgba(255, 255, 255, 0.2);
}

.user-expertise-section {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-1);
}

.user-expertise-section h2 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
}

.expertise-stats {
  display: flex;
  gap: 2rem;
  padding: 1rem;
  background: rgba(var(--primary-color-rgb), 0.05);
  border-radius: 8px;
}

.expertise-count,
.projects-count {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.count-number {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-color);
}

.count-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.expertise-labels {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.5rem;
}

.label-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  color: #fff;
  font-weight: 500;
  transition: 0.2s;
  cursor: default;
}

.label-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.125rem 0.5rem;
  border-radius: 10px;
  font-size: 0.75rem;
  min-width: 1.5rem;
}

.expertise-label:hover .label-badge {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.label-badge::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg,
      transparent 0,
      rgba(255, 255, 255, 0.1) 50%,
      transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.label-badge:hover::after {
  transform: translateX(100%);
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.document-upload-section {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.upload-form {
  width: 100%;
}

.upload-zone {
  border: 2px dashed var(--primary-color);
  border-radius: 8px;
  padding: 2rem;
  transition: 0.3s;
  background: rgba(var(--primary-color-rgb), 0.02);
  cursor: pointer;
}

.upload-zone:hover {
  border-color: var(--primary-dark);
  background: rgba(var(--primary-color-rgb), 0.04);
}

.upload-zone.drag-over {
  border-color: var(--primary-dark);
  background: rgba(var(--primary-color-rgb), 0.08);
  transform: scale(0.99);
}

.upload-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-icon {
  font-size: 48px;
  color: var(--primary-color);
}

.upload-text h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin: 0;
}

.upload-text p {
  color: var(--text-secondary);
  margin: 0.5rem 0 0;
}

.file-info {
  background: #fff;
  padding: 1rem;
  border-radius: 4px;
  box-shadow: var(--shadow-1);
  margin-top: 1rem;
}

.file-name {
  font-weight: 500;
  color: var(--text-primary);
}

.file-size {
  color: var(--text-secondary);
  margin-left: 1rem;
}

.upload-actions {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.progress-bar {
  height: 4px;
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
  margin-top: 1rem;
  overflow: hidden;
}

.document-meta,
.upload-error {
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.progress-fill {
  height: 100%;
  background: #90ee90;
  width: 0%;
  transition: width 0.3s;
}

.upload-error {
  color: var(--error);
}

.document-icon {
  width: 100%;
  height: 48px;
  background: rgba(var(--primary-color-rgb), 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.document-meta,
.figma-meta,
.material-divider-text,
.password-requirements ul,
.task-description {
  color: var(--text-secondary);
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.upload-form {
  background: rgba(var(--primary-color-rgb), 0.05);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.password-requirements {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 1rem;
  border-radius: 4px;
  margin: 1rem 0;
  font-size: 0.875rem;
}

.password-requirements ul {
  margin: 0.5rem 0 0 1.5rem;
}

.password-section {
  padding-top: 1rem;
}

.design-section {
  max-width: 100%;
  margin: 0 auto;
}

.figma-form {
  margin-bottom: 2rem;
  padding: 1.5rem;
}

.figma-preview {
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.figma-preview-header,
.upload-preview {
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.02);
}

.figma-embed-container iframe {
  max-width: 100%;
  margin: 0 auto;
  display: block;
}

@media (max-width: 800px) {
  .figma-embed-container iframe {
    width: 100%;
    height: 350px;
  }
}

.figma-link-form {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 2rem;
}

.figma-link-form .material-button {
  height: 56px;
  margin: 0;
  padding: 0 3rem;
}

.figma-link-form .material-input {
  flex-grow: 1;
}

.upload-preview {
  width: 100%;
  height: 300px;
  border: 2px dashed rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.upload-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.design-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.figma-links-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.figma-meta {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.figma-embed-container {
  position: relative;
  width: 100%;
  margin-top: 1rem;
  border-radius: 4px;
  overflow: hidden;
}

.form-grid {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-bottom: 1rem;
  width: 100%;
}

.figma-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.figma-preview-header h3 {
  margin: 0;
  color: var(--primary-color);
}

#figmaLinkForm>div>div:first-child {
  width: 33%;
}

@media (max-width: 768px) {
  .profile-avatar-container {
    width: 60px;
    height: 60px;
  }

  .avatar-upload-button {
    width: 28px;
    height: 28px;
  }

  .avatar-upload-button .material-icons {
    font-size: 14px;
  }

  .admin-header,
  .profile-header-content {
    flex-direction: column;
    text-align: center;
  }

  .admin-header,
  .profile-info,
  .project-meta {
    flex-direction: column;
    gap: 1rem;
  }

  .profile-badges {
    justify-content: center;
  }

  .dashboard-grid,
  .owners-grid,
  .projects-grid,
  .stat-group,
  .stats-grid,
  .stats-grid_requests,
  .students-grid-dashboard {
    grid-template-columns: 1fr;
  }

  .activity-item:not(:last-child)::after {
    left: 0.875rem;
  }

  .project-card,
  .task-card {
    margin: 0rem;
    border-radius: 0;
  }

  .task-labels {
    flex-wrap: wrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .task-label-badge {
    flex-shrink: 0;
  }

  .table-container {
    overflow-x: auto;
  }

  .admin-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .section-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .expertise-stats {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .expertise-labels {
    gap: 0.5rem;
  }

  .label-badge {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
  }

  .count-number {
    font-size: 1.5rem;
  }

  .count-label {
    font-size: 0.8125rem;
  }

  .figma-link-form,
  .form-grid {
    flex-direction: column;
  }

  #figmaLinkForm>div>div:first-child,
  .figma-link-form .material-button {
    width: 100%;
  }

  .design-images-grid {
    grid-template-columns: repeat(auto-fit, minmax(50%, 1fr));
  }
}

.material-divider {
  position: relative;
  margin: 48px 0;
}

.material-divider-text {
  position: relative;
  display: inline-block;
  padding: 0 16px;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background-color: var(--surface);
  z-index: 1;
}

.material-divider-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.12);
  transform: translateY(-50%);
  z-index: 0;
}

.logo-actions {
  position: absolute;
  width: 100%;
  height: 100%;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.logo-actions .material-icons {
  font-size: 3rem !important;
}

.upload-preview:hover .logo-actions {
  opacity: 1;
}

.logo-actions .material-button.small {
  padding: 2rem;
  background-color: rgba(25, 118, 210, 0.5) !important;
  backdrop-filter: blur(4px);
  color: var(--surface) !important;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
}

.material-button.small .material-icons {
  font-size: 18px;
}

.task-supervisor {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.task-supervisor .material-icons {
  font-size: 1.1rem;
  color: var(--primary-color);
}

.tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.tasks-header {
  padding: 1rem;
  margin-bottom: 0;
}

.tasks-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.task-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-1);
  transition: 0.2s;
  overflow: hidden;
}

.task-description {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.task-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.task-label-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 5px;
  font-size: 0.75rem;
  color: #fff;
  font-weight: 500;
}

.task-meta {
  cursor: grab;
}

.task-meta:active {
  cursor: grabbing;
}

.task-meta::-webkit-scrollbar {
  height: 2px;
  width: 0;
}

.task-meta::-webkit-scrollbar-track {
  background: 0 0;
}

.task-meta::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 1px;
}

.task-meta:hover::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
}

.task-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  border-radius: 5px !important;
}

.task-meta div:last-child {
  gap: 0.25rem;
  grid-column: 1 / -1;
}

.task-card-actions {
  padding: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.task-card.faire .task-card-header {
  background-color: #fb6400;
}

.task-card.cours .task-card-header {
  background-color: #2196f3;
}

.task-card.en-cours {
  border-left: 4px solid #2196f3;
}

.task-card.terminé .task-card-header {
  background-color: #43a047;
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.2);
}

.task-meta div:first-child,
.task-meta-item.supervisor {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(var(--primary-color-rgb), 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
}

.supervisor-info {
  display: flex;
  flex-direction: row;
}

.supervisor-promo {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.task-meta div:first-child .material-icons,
.task-meta-item.supervisor .material-icons {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.task-meta-item.supervisor:hover {
  background-color: rgba(var(--primary-color-rgb), 0.15);
  transform: translateY(-1px);
  transition: 0.2s;
}

.upcoming-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.task-item {
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: var(--shadow-1);
  transition: 0.2s;
}

.task-item:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

.table-section-header {
  background-color: var(--primary-light);
  color: #fff;
  font-weight: 500;
}

.table-section-header td {
  padding: 12px 16px !important;
  font-size: 1rem;
}

.table-section-header+tr td {
  padding-top: 16px;
}

.filename-input {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.filename-input input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.23);
  border-radius: 4px;
  font-size: 1rem;
}

.filename-input input:focus,
.material-input input[type="number"]:focus {
  border-color: var(--primary-color);
  outline: 0;
}

.error-message {
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

.required {
  color: red;
  margin-left: 4px;
}

.filename-input input:invalid {
  border-color: red;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-preview {
  max-width: 100%;
  height: auto;
  display: block;
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-secondary);
}

.typography-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.typography-card {
  background: var(--background);
  padding: 1.5rem;
  border-radius: 8px;
}

.typography-card input[type="text"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: 0.3s;
}

.typography-card input[type="text"].error {
  border-color: #f44336;
  background-color: #ffebee;
}

.typography-card .font-preview {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  min-height: 60px;
  transition: opacity 0.3s;
}

.typography-card input[type="text"]:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.1);
}

.font-preview {
  margin-top: 1rem;
  padding: 1rem;
  background: #fff;
  border-radius: 4px;
  min-height: 60px;
}

.heading-preview {
  font-size: 1.5rem;
}

.branding-import,
.colors-section {
  margin-top: 3rem;
}

.color-palette {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.color-picker input[type="color"] {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.color-palette-preview {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.color-swatch {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  border: 1px solid #d3d3d3;
}

@media (max-width: 768px) {

  .color-palette,
  .typography-grid {
    grid-template-columns: 1fr;
  }
}

.color-picker-container,
.font-selector {
  position: relative;
  width: 100%;
}

.color-input,
.font-list,
.ripple {
  position: absolute;
}

.font-selector input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.23);
  border-radius: 4px;
  font-size: 1rem;
  transition: 0.2s;
  background: #fff;
}

.font-selector input:focus {
  border-color: var(--primary-color);
  border-width: 2px;
  outline: 0;
  padding: 11px 15px;
}

.font-list {
  top: 100%;
  left: 0;
  right: 0;
  max-height: 250px;
  overflow-y: auto;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
  margin-top: 4px;
  padding: 8px 0;
}

.font-list.active {
  display: block;
  animation: 0.2s slideDown;
}

.font-option {
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.font-option:hover {
  background-color: rgba(var(--primary-color-rgb), 0.04);
}

.font-option.selected {
  background-color: rgba(var(--primary-color-rgb), 0.08);
  color: var(--primary-color);
}

.font-preview-item {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-left: 8px;
}

.subtitle-preview {
  font-size: 1.25rem;
}

.typography-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 1200px) {
  .typography-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.font-list::-webkit-scrollbar {
  width: 8px;
}

.font-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.font-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.font-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

.color-picker-preview:hover,
.color-values-expanded .color-value:hover {
  background-color: var(--surface-container-high);
}

.font-selector .search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
  transition: 0.2s;
}

.popular-badge {
  background-color: rgba(var(--primary-color-rgb), 0.1);
  color: var(--primary-color);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.color-value {
  color: var(--on-surface-variant);
}

.font-loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(var(--primary-color-rgb), 0.2);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: 0.8s linear infinite spin;
  margin-left: 8px;
}

@keyframes spin {
  0% {
    transform: rotate(0);
  }

  100%,
  to {
    transform: rotate(360deg);
  }
}

.color-picker-preview {
  display: flex;
  align-items: center;
  background-color: var(--surface-container);
  border: 1px solid var(--outline-variant);
}

.color-preview-circle {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.1);
  margin-right: 16px;
  transition: 0.3s;
}

.color-picker-preview {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.color-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.color-palette {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.color-card {
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.color-info label {
  font-size: 0.9rem;
  color: var(--on-surface);
  margin-bottom: 4px;
}

.color-picker-preview .material-icons {
  color: var(--on-surface-variant);
  opacity: 0.8;
}

.color-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.color-preview-bar {
  display: none;
  height: 8px;
  width: 100%;
  margin-top: auto;
  transition: 0.3s;
}

.color-value,
.font-input-container.active {
  display: block;
}

.ripple {
  border-radius: 50%;
  background-color: var(--on-surface);
  opacity: 0;
  animation: 1s ease-out ripple;
  pointer-events: none;
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 0.35;
  }

  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.color-values {
  position: relative;
  cursor: pointer;
}

.color-values:hover .color-values-expanded {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.color-value {
  font-family: "Roboto Mono", monospace;
  font-size: 0.85rem;
}

.color-value.hex {
  color: var(--on-surface);
}

.color-values-expanded {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface-container-highest);
  border-radius: 8px;
  padding: 8px;
  margin-top: 4px;
  opacity: 0;
  transform: translateY(-4px);
  transition: 0.2s;
  pointer-events: none;
  box-shadow: var(--shadow-2);
  z-index: 10;
}

.about-header,
.accordion-item,
.dependency-item {
  box-shadow: var(--shadow-1);
}

.color-values-expanded .color-value {
  padding: 4px 8px;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.color-values-expanded .color-value:hover {
  border-radius: 4px;
}

.color-value.hex::before,
.color-value.hsl::before,
.color-value.rgb::before {
  content: attr(data-format);
  display: inline-block;
  width: 32px;
  color: var(--primary);
  font-size: 0.75rem;
  margin-right: 4px;
}

.color-value.hex::before {
  content: "HEX";
}

.color-value.rgb::before {
  content: "RGB";
}

.color-value.hsl::before {
  content: "HSL";
}

.gantt-timeline .task-bar::after,
.task-bar:hover::after {
  content: attr(title);
  left: 50%;
  font-size: 12px;
  white-space: nowrap;
  position: absolute;
}

.upload-preview {
  cursor: pointer;
  transition: 0.3s;
}

.upload-preview:hover {
  background-color: var(--hover-color);
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  transition: 0.3s;
}

.upload-preview:hover .upload-placeholder {
  border-color: var(--primary-color);
  background-color: var(--hover-color);
}

.upload-placeholder .material-icons {
  font-size: 48px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.font-source-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.font-tab {
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: 0 0;
  cursor: pointer;
  transition: 0.2s;
}

.font-tab.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.tasks-grid-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1rem;
}

.tasks-left-column {
  position: sticky;
  top: 2rem;
  align-self: start;
}

.tasks-right-column {
  min-width: 0;
}

.task-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
  width: 100%;
}

.task-meta-item {
  display: flex;
  height: 50px;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  padding: 6px 8px;
  background: var(--surface-variant);
  justify-content: center;
  min-width: 0;
}

.deadline.task-meta-item {
  background-color: rgba(255, 0, 0, 0.1);
}

.task-meta-item>div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-meta-item .overdue-text {
  font-size: 0.8em;
  font-weight: 700;
  margin-left: 4px;
}

.accordion-item {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  padding: 1.5rem;
  background: 0 0;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.task-count {
  background: var(--primary-color);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.875rem;
}

.accordion-header .material-icons,
.accordion-icon {
  transition: transform 0.3s;
}

.accordion-header.active .material-icons,
.accordion-icon.active {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-content.active {
  max-height: 2000px;
  /* A large value to accommodate all content */
}

.specialization-section .task-card-header {
  padding: 0;
  justify-content: center;
  background: 0 0;
}

.specialization-section h3 {
  margin: 1rem 0;
  padding: 0.5rem;
  background: var(--primary-light);
  color: #fff;
  border-radius: 4px;
}

.task-meta-item.no-deadline {
  color: #757575;
  font-style: italic;
}

.task-meta-item .no-deadline-text {
  font-size: 0.9em;
  margin-left: 4px;
}

@media (max-width: 768px) {
  .tasks-grid-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .tasks-left-column {
    position: static;
  }

  .supervisor-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .tasks-grid {
    grid-template-columns: 1fr;
  }

  .task-meta {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 480px) {
  .task-meta {
    grid-template-columns: 1fr;
  }
}

.task-comments {
  padding: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  max-height: 300px;
  overflow-y: auto;
}

.comments-list {
  overflow-y: auto;
  margin-bottom: 1rem;
}

.comment-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.comment-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.comment-avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

.comment-header {
  margin-bottom: 0.25rem;
}

.comment-author {
  font-weight: 500;
  margin-right: 0.5rem;
}

.comment-text {
  margin: 0;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.7);
}

.comment-form {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.comment-form textarea {
  min-height: 36px;
  resize: vertical;
  padding: 0.5rem;
}

.show-comment-form {
  font-weight: 400;
}

.show-comment-form .material-icons {
  font-size: 1.5rem !important;
}

.simple-accordion {
  margin-top: 24px;
}

.simple-accordion-header {
  width: 100%;
  padding: 16px;
  background: 0 0;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.simple-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.simple-table td,
.simple-table th {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.simple-table th {
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.02);
}

.task-link {
  color: var(--primary-color);
  text-decoration: none;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.supervisor-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.promo-badge.small {
  font-size: 0.75rem;
  padding: 2px 6px;
  background: var(--primary-light);
  color: #fff;
  border-radius: 4px;
}

.preview-error .material-icons,
.preview-loader .material-icons {
  font-size: 48px;
  margin-bottom: 1rem;
}

.simple-table td {
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.search-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-direction: row;
}

.material-input.search-input {
  min-width: 30%;
}

.search-filters input,
.search-filters select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.about-header {
  padding: 3rem 1rem;
  margin: 2rem auto;
  background: var(--primary-color);
  color: #fff;
  border-radius: 8px;
}

.about-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.about-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.rf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.rf-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.dependency-remove,
.password-accordion-header {
  cursor: pointer;
  transition: background-color 0.2s;
}

.rf-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}

.rf-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.rf-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.rf-title {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--primary-light);
  color: #fff;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.rf-description {
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .rf-grid {
    grid-template-columns: 1fr;
  }

  .about-header h1 {
    font-size: 2rem;
  }
}

.password-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
}

.password-accordion-content {
  padding: 1.5rem 1rem 1rem;
  animation: 0.3s slideDown;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.material-input input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.23);
  border-radius: 4px;
  font-size: 1rem;
  width: 100%;
  transition: border-color 0.2s;
}

.material-input input[type="number"]::-webkit-inner-spin-button,
.material-input input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.task-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.task-header-content {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.status-select {
  height: 56px;
}

.task-blocker-select {
  margin-top: 0.5rem;
  margin-bottom: 0;
  min-width: 200px;
  width: 60%;
}

.status-select-container select,
.task-blocker-select select {
  font-size: 0.875rem;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.status-select:disabled,
.task-blocker-select select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.task-blocker-select option {
  color: var(--text-primary);
  background: #fff;
  padding: 4px;
}

.task-blocker-select option.completed-task {
  color: var(--success);
}

#blocking_tasks {
  appearance: none !important;
  background-image: none !important;
  padding: 1rem !important;
  height: 120px;
}

#blocking_tasks option {
  display: flex;
  align-items: center;
  padding: 10px;
  border-radius: 5px;
  margin: 0.2rem;
}

.task-card.blocked {
  opacity: 0.7;
  position: relative;
}

.task-card.blocked::before {
  content: "🔒";
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.2rem;
}

.task-dependencies {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.task-dependencies .blocking {
  color: #f44336;
}

.task-dependencies .blocked {
  color: #ff9800;
}

.dependency-arrows {
  z-index: 1;
}

.dependencies-list {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.dependency-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  margin: 0.5rem 0;
  background: #f5f5f5;
  border-radius: 4px;
}

.dependency-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dependencies-list h4 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #666;
}

.current-dependencies {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
}

.dependency-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  margin: 0.5rem 0;
  background: #fff;
  border-radius: 4px;
}

.preview-image,
object[type="application/pdf"] {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.dependency-remove {
  color: var(--error);
  padding: 0.25rem;
  border-radius: 50%;
}

.preview-error,
.preview-loader {
  text-align: center;
  padding: 2rem;
}

.dependency-remove:hover {
  background-color: rgba(var(--error-rgb), 0.1);
}

.dependencies-list {
  max-height: 200px;
  overflow-y: auto;
}

.modal-content.preview-modal-content {
  width: 90%;
  height: 90vh;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease-out;
}

.preview-modal-content .modal-body {
  flex: 1;
  overflow: auto;
  padding: 1rem;
  background: #f5f5f5;
  border-radius: 0 0 8px 8px;
}

#previewContainer {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 4px;
}

.preview-image {
  max-width: 100%;
  max-height: calc(90vh - 120px);
  object-fit: contain;
}

.preview-loader {
  color: var(--primary-color);
}

.preview-error,
.preview-error .material-icons {
  color: var(--error);
}

@keyframes spin {
  from {
    transform: rotate(0);
  }

  to {
    transform: rotate(360deg);
  }
}

.spin {
  animation: 1s linear infinite spin;
}

object[type="application/pdf"] {
  background: #fff;
}

/* Style de base du conteneur Gantt */
.visualization-view {
  margin: 20px 0;
}

.gantt-wrapper {
  overflow: hidden;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

.gantt-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  /* Permet le scroll vertical */
  max-height: 500px;
  /* Limite la hauteur - ajustez selon vos besoins */
  position: relative;
  /* Pour le positionnement des éléments fixes */
}

/* Styles de la table */
.gantt-table {
  border-collapse: collapse;
  width: max-content;
  min-width: 100%;
  background: white;
  font-size: 14px;
}

.gantt-table th,
.gantt-table td {
  border: 1px solid #e0e0e0;
  height: 40px;
}

/* En-têtes et colonnes fixes */
.fixed-column {
  position: sticky;
  left: 0;
  background: white;
  z-index: 2;
  padding: 8px 16px;
  min-width: 150px;
  white-space: nowrap;
  border-right: 2px solid #e0e0e0 !important;
}

thead .fixed-column {
  z-index: 11;
  /* Valeur plus élevée que les autres éléments fixes */
}

/* Ajouter une ombre pour mieux voir la séparation */
.fixed-column::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.1), transparent);
  pointer-events: none;
}

thead tr th {
  position: sticky !important;
  top: 0;
  background: white;
  z-index: 10;
  font-weight: 500;
}

thead tr th.fixed-column {
  z-index: 3;
}

/* Cellules de dates */
.date-cell {
  text-align: center;
  min-width: 40px;
  width: 40px;
  padding: 4px !important;
  font-size: 12px;
  color: #666;
}

.weekend {
  background-color: #f8f9fa;
}

.today {
  background-color: #e3f2fd;
}

/* Cellule contenant la barre de tâche */
.timeline-cell {
  position: relative;
  padding: 0 !important;
  border: none !important;
}

/* Style des barres de tâches */
.task-bar {
  position: absolute;
  top: 20px;
  bottom: 5px;
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
}

/* Couleurs selon le statut */
.task-bar.à_faire {
  background-color: #2196f3;
}

.task-bar.en_cours {
  background-color: #ff9800;
}

.task-bar.terminé {
  background-color: #4caf50;
}

/* Effets au survol */
.task-bar:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Info-bulle au survol */
.task-bar[title]:hover::after {
  content: attr(title);
  position: fixed;
  /* Changé de absolute à fixed */
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  background: rgba(33, 33, 33, 0.95);
  color: white;
  border-radius: 4px;
  font-size: 12px;
  white-space: pre-line;
  z-index: 9999;
  /* Augmenté pour être au-dessus de tout */
  min-width: 200px;
  max-width: 300px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  /* Empêche l'info-bulle de bloquer les interactions */
}

.task-bar {
  --tooltip-top: auto;
}

.task-bar[title]:hover::after {
  top: var(--tooltip-top);
  bottom: var(--tooltip-bottom, auto);
}

/* Styles des informations de tâche */
.task-name {
  font-weight: 500;
  color: #333;
}

.task-assignee {
  color: #666;
  font-size: 0.9em;
}

.task-duration {
  text-align: center;
  color: #666;
  font-size: 0.9em;
}

/* Personnalisation de la barre de défilement */
.gantt-container::-webkit-scrollbar {
  height: 8px;
}

.gantt-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.gantt-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.gantt-container::-webkit-scrollbar-thumb:hover {
  background: #666;
}

/* Support pour Firefox */
.gantt-container {
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
}

.gantt-table tbody tr:hover {
  background-color: #f5f5f5;
}

/* Style pour le contenu fixe */
.gantt-table tbody td.fixed-column {
  background: white;
  border-right: 2px solid #e0e0e0;
  z-index: 5;
}

/* Améliorer la visibilité de la limite de défilement */
.gantt-container::-webkit-scrollbar {
  width: 8px;
  /* Pour le scroll vertical */
  height: 8px;
  /* Pour le scroll horizontal */
}

/* Responsive design */
@media (max-width: 768px) {
  .fixed-column {
    min-width: 120px;
  }

  .date-cell {
    min-width: 35px;
  }

  .gantt-table {
    font-size: 13px;
  }
}

.task-notification {
  margin-top: 10px;
  padding: 10px 15px;
  border-radius: 4px;
  display: none;
  opacity: 0;
  transition: all 0.3s ease;
  background-color: #ffebee;
  border-left: 4px solid #c62828;
  color: #c62828;
}

.task-notification.show {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 1;
}

.task-notification .material-icons {
  font-size: 20px;
}

.task-notification-message {
  flex-grow: 1;
  font-size: 14px;
}

.task-notification-close {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 4px;
  opacity: 0.7;
}

.task-notification-close:hover {
  opacity: 1;
}

.card-container {
  border-radius: 20px;
}

.stat-card {
  background: #efefef !important;
}

.card-container .card {
  font-weight: bold;
  position: relative;
  width: 100%;
}

.card-container .card a {
  padding: 30px;
  width: 100%;
  height: 400px;
  border: 3px solid var(--mdscyan);
  background: linear-gradient(135deg,
      rgba(23, 163, 184, 0.15) 0%,
      rgba(18, 132, 150, 0.12) 50%,
      rgba(16, 160, 182, 0.15) 100%) !important;
  text-decoration: none;
  color: black;
  display: block;
  transition: transform 0.25s ease;
  border-radius: 20px;
}

.card-container .card a:hover {
  transform: translate(-10px, -10px);
  border-color: #5bc0eb;
  background: white !important;
}

.card-container .card a:hover .card--display {
  display: none;
}

.card-container .card a:hover .card--hover {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-container .card a .card--display i {
  font-size: 60px;
  margin-top: 200px;
}

.card-container .card a .card--display h2 {
  margin: 20px 0 0;
}

.card-container .card a .card--hover {
  display: none;
}

.card-container .card a .card--hover h2 {
  margin: 20px 0;
}

.card-container .card a .card--hover p {
  font-weight: normal;
  line-height: 1.5;
}

.card-container .card a .card--hover p.link {
  margin: 20px 0 0;
  font-weight: bold;
  color: #5bc0eb;
}

.card-container .card .card--border {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  border: 2px dashed var(--mdscyan);
  border-radius: 20px;
  z-index: -1;
}

.card-container .card.card--dark a {
  color: white;
  background-color: black;
  border-color: black;
}

.card-container .card.card--dark a .card--hover .link {
  color: #fde74c;
}

.box-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-gap: 18px;
  margin-top: 36px;
}

/* Animation au survol */
.box-info li {
  transition: transform 0.3s ease, background 0.3s ease;
}

.box-info .material-icons-outlined {
  background: var(--mdsdark);
}

.box-info li .text h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--mdsdark);
}

.box-info li .text p {
  color: var(--mdsdark);
}

.box-info .material-icons-outlined {
  font-size: 28px;
  padding: 18px;
  color: var(--mdscyan);
  border-radius: 12px;
  display: flex;
  align-items: center;
}

.card--background-icon {
  position: absolute;
  top: 5px;
  right: 5px;
  opacity: 0.1;
  z-index: 1;
  pointer-events: none;
}

.card--background-icon i.material-icons {
  font-size: 125px;
}

.card--display,
.card--hover {
  position: relative;
  z-index: 2;
}

.dependency-path {
  transition: all 0.3s ease;
}

.dependency-path:hover {
  stroke: #1565c0;
  stroke-width: 3px;
}

/* tasks-by-supervisor.css */

/* Styles généraux de la page */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.dashboard-actions {
  display: flex;
  gap: 1rem;
}

/* Styles des cartes de statistiques */
.stats-grid,
.stats-grid_requests {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card .material-icons {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0.5rem 0;
  line-height: 1;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.overdue-value {
  color: #d32f2f;
}

/* Styles des graphiques circulaires */
.progress-card {
  position: relative;
}

.stat-progress {
  width: 100px;
  height: 100px;
  margin: 0 auto;
}

.circular-chart {
  display: block;
  margin: 10px auto;
  max-width: 100%;
  max-height: 100%;
}

.circle-bg {
  fill: none;
  stroke: #eee;
  stroke-width: 3.8;
}

.circle {
  fill: none;
  stroke-width: 3.8;
  stroke-linecap: round;
  stroke: var(--primary-color);
  animation: progress 1s ease-out forwards;
}

.percentage {
  fill: var(--primary-color);
  font-size: 0.6em;
  text-anchor: middle;
  font-weight: bold;
}

@keyframes progress {
  0% {
    stroke-dasharray: 0 100;
  }
}

/* Styles de l'accordéon */
.accordion-container {
  margin: 2rem 0;
}

.accordion-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-header {
  width: 100%;
  padding: 1.5rem;
  background: #fff;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s;
  text-align: left;
}

.accordion-header:hover {
  background-color: rgba(var(--primary-color-rgb), 0.05);
}

.accordion-header.active {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background-color: rgba(var(--primary-color-rgb), 0.07);
}

.supervisor-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.supervisor-info h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.supervisor-avatar,
.supervisor-avatar-placeholder {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.supervisor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.supervisor-avatar-placeholder {
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 1.5rem;
}

.supervisor-avatar-small,
.supervisor-avatar-small-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
}

.supervisor-avatar-small-placeholder {
  background-color: var(--primary-light);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 0.875rem;
}

.supervisor-info.small {
  gap: 0.5rem;
}

.accordion-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.progress-container {
  display: flex;
  flex-direction: column;
  min-width: 150px;
}

.progress-bar {
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 5px;
}

.progress-fill {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 4px;
  width: 0;
  transition: width 1s ease-in-out;
}

.progress-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: right;
}

.accordion-icon {
  font-size: 2rem;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.task-count {
  background: rgba(var(--primary-color-rgb), 0.1);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.task-count.small {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

.count-number {
  font-weight: 700;
}

.count-label {
  font-size: 0.875rem;
}

/* Contenu de l'accordéon */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: #fff;
}

.specializations-container {
  padding: 1.5rem;
}

.specialization-section {
  margin-bottom: 2rem;
}

.specialization-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--primary-color);
}

.specialization-title .material-icons {
  color: var(--primary-color);
}

/* Styles des cartes de tâches */
.tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.task-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  border-top: 5px solid transparent;
}

.task-card[data-status="terminé"] {
  border-top-color: #4caf50;
}

.task-card[data-status="en cours"] .task-card-header {
  background-color: var(--stat-total-secondary) !important;
}

.task-card[data-status="à faire"] {
  border: 0;
}

.task-card[data-status="à faire"] .task-card-header {
  background-color: var(--stat-review-primary) !important;
}

.task-card.overdue {
  border-top-color: #f44336;
}

.task-card-header {
  padding: 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background-color: rgba(var(--primary-color-rgb), 0.05);
}

.task-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.task-card-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.faire .task-card-header h3 {
  color: var(--text-primary);
}

.task-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  max-height: 100px;
  overflow: hidden;
  position: relative;
}

.task-description:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(to top,
      rgba(255, 255, 255, 1),
      rgba(255, 255, 255, 0));
}

.task-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.task-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background-color: rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  overflow: hidden;
}

.task-meta-item.overdue {
  background-color: rgba(244, 67, 54, 0.1);
  color: #d32f2f;
}

.task-meta-item .material-icons {
  font-size: 1.25rem;
}

.task-meta-item div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overdue-text {
  color: #d32f2f;
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.task-card-actions {
  padding: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Styles du tableau de tâches */
.task-table-card {
  margin-top: 2rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.card-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.search-container {
  position: relative;
  width: 300px;
}

.search-input {
  width: 100%;
  border-radius: 20px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
  outline: none;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.material-table {
  width: 100%;
  border-collapse: collapse;
}

.material-table th {
  position: sticky;
  top: 0;
  background-color: #f5f5f5;
  z-index: 10;
  cursor: pointer;
}

.sort-icon {
  display: inline-block;
  margin-left: 5px;
  color: var(--primary-color);
}

.material-table tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}

.material-table tr:hover {
  background-color: rgba(var(--primary-color-rgb), 0.05);
}

.table-actions {
  display: flex;
  gap: 0.5rem;
}

.action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(var(--primary-color-rgb), 0.1);
  color: var(--primary-color);
  transition: background-color 0.3s, transform 0.3s;
}

.action-btn:hover {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.action-btn .material-icons {
  font-size: 18px;
}

.status-badge {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: capitalize;
}

.status-badge.terminé {
  background-color: #4caf50;
  color: white;
}

.status-badge.en-cours {
  background-color: #2196f3;
  color: white;
}

.status-badge.a-faire {
  background-color: #ffc107;
  color: #333;
}

.status-badge.to-verify {
  background-color: #ff9800;
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.status-badge.a-faire {
  background-color: rgba(236, 67, 0);
  color: #eee;
}

tr.status-rejected {
  background-color: rgba(236, 67, 0, 0.2) !important;
  color: #333;
}

.request-row.status-to_verify {
  background-color: rgba(255, 153, 0, 0.2) !important;
  font-weight: 600;
}

.stat-card.highlight-card {
  background: linear-gradient(135deg,
      rgba(255, 152, 0, 0.15) 0%,
      rgba(255, 193, 7, 0.12) 50%,
      rgba(255, 167, 38, 0.15) 100%) !important;
  border: 2px solid rgba(255, 152, 0, 0.4) !important;
  border-left: 4px solid #ff9800 !important;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  font-size: 1.3rem;
}

.stat-card.highlight-card .stat-icon {
  color: #ff9800 !important;
  background: rgba(255, 255, 255, 0.3) !important;
  padding: 0.75rem !important;
  border-radius: 50% !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(255, 152, 0, 0.2) !important;
  position: relative;
  z-index: 1;
}

.stat-card.highlight-card .stat-icon .material-icons-outlined {
  filter: drop-shadow(0 2px 4px rgba(255, 152, 0, 0.3));
}

.stat-card.highlight-card .stat-value {
  color: #e65100 !important;
  font-weight: 700 !important;
  text-shadow: 0 2px 4px rgba(255, 152, 0, 0.15);
  position: relative;
  z-index: 1;
}

.stat-card.highlight-card .stat-label {
  color: #f57c00 !important;
  font-weight: 600 !important;
  position: relative;
  z-index: 1;
}

.request-row.status-approved {
  background-color: rgba(67, 160, 72, 0.2) !important;
}

/* Style pour carte "All" (Cyan/Bleu) */
.stat-card.highlight-card.all,
.stats-grid .stat-card {
  background: linear-gradient(135deg,
      rgba(23, 163, 184, 0.15) 0%,
      rgba(18, 132, 150, 0.12) 50%,
      rgba(16, 160, 182, 0.15) 100%) !important;
  border: 2px solid rgba(23, 163, 184, 0.4) !important;
  border-left: 4px solid var(--mdscyan) !important;
}

.stat-card.highlight-card.all::before,
.stats-grid .stat-card::before,
.stats-grid_requests .stat-card::before {
  background: radial-gradient(circle,
      rgba(23, 163, 184, 0.15) 0%,
      transparent 70%);
  animation: pulse-active 3s ease-in-out infinite;
}

@keyframes pulse-active {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.stat-card.highlight-card.all .stat-icon {
  color: var(--mdscyan) !important;
  background: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 2px 10px rgba(23, 163, 184, 0.2) !important;
  padding: 0.75rem !important;
  border-radius: 50% !important;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

.stat-card.highlight-card.all .stat-icon .material-icons-outlined {
  filter: drop-shadow(0 2px 4px rgba(23, 163, 184, 0.3));
}

.stat-card.highlight-card.all .stat-value {
  color: rgb(16, 119, 134) !important;
  text-shadow: 0 2px 4px rgba(23, 163, 184, 0.15);
  font-weight: 700 !important;
  position: relative;
  z-index: 1;
}

.stat-card.highlight-card.all .stat-label {
  color: rgb(16, 119, 134) !important;
  font-weight: 600 !important;
  position: relative;
  z-index: 1;
}

/* Style pour carte "Active" / "Approuvée" (Vert) */
.stat-card.highlight-card.active {
  background: linear-gradient(135deg,
      rgba(76, 175, 80, 0.15) 0%,
      rgba(129, 199, 132, 0.12) 50%,
      rgba(102, 187, 106, 0.15) 100%) !important;
  border: 2px solid rgba(76, 175, 80, 0.4) !important;
  border-left: 4px solid #4caf50 !important;
}

.stat-card.highlight-card.active::before {
  background: radial-gradient(circle,
      rgba(129, 199, 132, 0.15) 0%,
      transparent 70%);
  animation: pulse-active 3s ease-in-out infinite;
}

@keyframes pulse-active {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.stat-card.highlight-card.active:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(76, 175, 80, 0.6) !important;
}

.stat-card.highlight-card.active .stat-icon {
  color: #4caf50 !important;
  background: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 2px 10px rgba(76, 175, 80, 0.2) !important;
  padding: 0.75rem !important;
  border-radius: 50% !important;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

.stat-card.highlight-card.active .stat-icon .material-icons-outlined {
  filter: drop-shadow(0 2px 4px rgba(76, 175, 80, 0.3));
}

.stat-card.highlight-card.active .stat-value {
  color: #2e7d32 !important;
  text-shadow: 0 2px 4px rgba(76, 175, 80, 0.15);
  font-weight: 700 !important;
  position: relative;
  z-index: 1;
}

.stat-card.highlight-card.active .stat-label {
  color: #388e3c !important;
  font-weight: 600 !important;
  position: relative;
  z-index: 1;
}

/* Style pour carte "À faire" (Jaune) */
.stat-card.highlight-card.a-faire {
  background: linear-gradient(135deg,
      rgba(236, 67, 0, 0.15) 0%,
      rgba(216, 64, 5, 0.12) 50%,
      rgba(218, 62, 0, 0.15) 100%) !important;
  border: 2px solid rgba(236, 67, 0, 0.4) !important;
  border-left: 4px solid rgba(236, 67, 0) !important;
}

.stat-card.highlight-card.a-faire::before {
  background: radial-gradient(circle,
      rgba(236, 67, 0, 0.15) 0%,
      transparent 70%);
  animation: pulse-afaire 3s ease-in-out infinite;
}

@keyframes pulse-afaire {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.stat-card.highlight-card.a-faire:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(236, 67, 0, 0.6) !important;
}

.stat-card.highlight-card.a-faire .stat-icon {
  color: #ffc107 !important;
  background: rgba(236, 67, 0, 0.3) !important;
  box-shadow: 0 2px 10px rgba(236, 67, 0, 0.2) !important;
  padding: 0.75rem !important;
  border-radius: 50% !important;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

.stat-card.highlight-card.a-faire .stat-icon .material-icons-outlined {
  filter: drop-shadow(0 2px 4px rgba(236, 67, 0, 0.3));
}

.stat-card.highlight-card.a-faire .stat-value {
  color: rgb(236, 67, 0) !important;
  text-shadow: 0 2px 4px rgba(236, 67, 0, 0.15);
  font-weight: 700 !important;
  position: relative;
  z-index: 1;
}

.stat-card.highlight-card.a-faire .stat-label {
  color: rgb(236, 67, 0) !important;
  font-weight: 600 !important;
  position: relative;
  z-index: 1;
}

/* Style pour carte "Terminé" (Vert foncé) */
.stat-card.highlight-card.termine {
  background: linear-gradient(135deg,
      rgba(67, 160, 71, 0.15) 0%,
      rgba(104, 159, 56, 0.12) 50%,
      rgba(85, 139, 47, 0.15) 100%) !important;
  border: 2px solid rgba(67, 160, 71, 0.4) !important;
  border-left: 4px solid #43a047 !important;
}

.stat-card.highlight-card.termine::before {
  background: radial-gradient(circle,
      rgba(104, 159, 56, 0.15) 0%,
      transparent 70%);
  animation: pulse-termine 3s ease-in-out infinite;
}

@keyframes pulse-termine {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.stat-card.highlight-card.termine:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 25px rgba(67, 160, 71, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  border-color: rgba(67, 160, 71, 0.6) !important;
}

.stat-card.highlight-card.termine .stat-icon {
  color: #43a047 !important;
  background: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 2px 10px rgba(67, 160, 71, 0.2) !important;
  padding: 0.75rem !important;
  border-radius: 50% !important;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

.stat-card.highlight-card.termine .stat-icon .material-icons-outlined {
  filter: drop-shadow(0 2px 4px rgba(67, 160, 71, 0.3));
}

.stat-card.highlight-card.termine .stat-value {
  color: #1b5e20 !important;
  text-shadow: 0 2px 4px rgba(67, 160, 71, 0.15);
  font-weight: 700 !important;
  position: relative;
  z-index: 1;
}

.stat-card.highlight-card.termine .stat-label {
  color: #2e7d32 !important;
  font-weight: 600 !important;
  position: relative;
  z-index: 1;
}

.overdue-row {
  background-color: rgba(244, 67, 54, 0.05) !important;
}

.overdue-date {
  color: #d32f2f;
  font-weight: 500;
}

.overdue-tag {
  display: inline-block;
  padding: 0.125rem 0.375rem;
  background-color: #d32f2f;
  color: white;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

.no-date,
.no-supervisor {
  font-style: italic;
  color: var(--text-secondary);
}

.promo-badge {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: var(--primary-color);
  color: white;
}

.promo-badge.small {
  padding: 0.125rem 0.375rem;
  font-size: 0.6875rem;
}

/* Styles responsifs */
@media (max-width: 1024px) {
  .tasks-grid {
    grid-template-columns: 1fr;
  }

  .accordion-stats {
    display: none;
  }

  .search-container {
    width: 100%;
    margin-top: 1rem;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .task-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  .stats-grid,
  .stats-grid_requests {
    grid-template-columns: repeat(2, 1fr);
  }

  .material-table {
    font-size: 0.875rem;
  }

  .table-actions {
    flex-direction: column;
  }

  .task-card-actions {
    flex-direction: column;
  }

  .supervisor-info {
    gap: 0.75rem;
  }

  .progress-container {
    display: none;
  }
}

@media (max-width: 480px) {

  .stats-grid,
  .stats-grid_requests {
    grid-template-columns: 1fr;
  }

  .supervisor-info h2 {
    font-size: 1rem;
  }

  .supervisor-avatar,
  .supervisor-avatar-placeholder {
    width: 40px;
    height: 40px;
  }
}

/* Styles pour les tâches dans l'accordéon */
.tasks-list {
  display: grid;
  gap: 1rem;
}

.task-list-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  border-left: 4px solid #ccc;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.task-list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.task-list-item.terminé {
  border-left-color: #4caf50;
}

.task-list-item.en-cours {
  border-left-color: #2196f3;
}

.task-list-item.a-faire {
  border-left-color: #9e9e9e;
}

.task-list-item.overdue {
  border-left-color: #f44336;
}

.task-list-header {
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.task-list-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.task-list-title h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.task-list-project {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.task-list-project .material-icons {
  font-size: 1rem;
  margin-right: 0.5rem;
}

.task-list-project a {
  color: var(--primary-color);
  text-decoration: none;
}

.task-list-project a:hover {
  text-decoration: underline;
}

.task-list-details {
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
}

.task-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.task-detail .material-icons {
  font-size: 1rem;
  color: var(--text-secondary);
}

.task-detail.overdue {
  color: #f44336;
}

.task-detail.overdue .material-icons {
  color: #f44336;
}

.overdue-text {
  color: #f44336;
  font-weight: 500;
  margin-left: 0.5rem;
}

.student-promo {
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-left: 0.5rem;
}

.task-actions {
  display: flex;
  gap: 0.5rem;
}

.task-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: white;
  color: var(--primary-color);
  border: 1px solid rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: background-color 0.2s;
}

.task-action-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.task-action-btn .material-icons {
  font-size: 18px;
}

/* Styles améliorés pour la gestion des étudiants */
.admin-dashboard {
  padding: 1.5rem;
  background-color: #f9f9f9;
  min-height: calc(100vh - 64px);
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.stat-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.stat-info .stat-label {
  font-size: 1.25rem;
  color: #000;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.stat-icon {
  font-size: 2.5rem;
  color: #1976d2;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #1a237e;
  line-height: 1;
  margin: 0.5rem 0;
}

.stat-label {
  color: #546e7a;
  font-size: 0.875rem;
  font-weight: 500;
}

.material-card {
  background: white;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  overflow: hidden;
}

.material-card.cardtask {
  min-height: 200px;
  display: flex;
  gap: 15px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.search-input {
  flex: 1;
  min-width: 280px;
  position: relative;
}

.search-input input {
  padding-left: 2.5rem !important;
}

.search-input::before {
  content: "\e8b6";
  font-family: "Material Icons";
  position: absolute;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
  color: #546e7a;
  z-index: 1;
}

.material-input {
  margin-bottom: 0;
  position: relative;
}

.material-input label {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-50%) scale(0.85);
  background-color: #f5f7fa;
  padding: 0 0.5rem;
  color: #546e7a;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.material-input input,
.material-input select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cfd8dc;
  border-radius: 8px;
  font-size: 1rem;
  background-color: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.material-input input:focus,
.material-input select:focus {
  border-color: #1976d2;
  box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
  outline: none;
}

.table-container {
  overflow-x: auto;
  padding: 0.5rem;
}

.material-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 800px;
}

.material-table thead th {
  background-color: #f5f7fa;
  color: #546e7a;
  font-weight: 600;
  text-align: left;
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.material-table tbody td {
  padding: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  vertical-align: middle;
  transition: background-color 0.2s;
}

.material-table tbody tr {
  transition: all 0.2s;
}

.material-table tbody tr:hover {
  background-color: rgba(25, 118, 210, 0.05);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.material-table tbody tr:hover td {
  border-bottom: 1px solid rgba(25, 118, 210, 0.2);
}

.table-section-header {
  background-color: #e1f5fe !important;
  color: #0277bd;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
}

.table-section-header td {
  padding: 0.75rem 1rem !important;
}

.student-info-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.student-avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.student-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #1976d2;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background-color: #e3f2fd;
  color: #0277bd;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.shrinkCol {
  width: 1%;
  white-space: nowrap;
}

.text-muted {
  color: #78909c;
  font-style: italic;
}

.material-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  border: none;
  cursor: pointer;
  text-shadow: 0px 0px 1px black;
}

.material-button.primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.material-button.primary:hover {
  background-color: var(--primary-color-dark);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.material-button.secondary {
  background-color: var(--surface-color, #f5f5f5);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.material-button.secondary:hover {
  background-color: var(--surface-variant-color, #e0e0e0);
}

.material-button .material-icons-outlined {
  font-size: 20px;
}

.material-button:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.material-button.outlined {
  background-color: transparent;
  border: 1px solid #1976d2;
  color: #1976d2;
  box-shadow: none;
}

.material-button.outlined:hover {
  background-color: rgba(25, 118, 210, 0.05);
}

.material-button.small {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.material-button.danger {
  background-color: transparent;
  color: #e53935;
}

.material-button.danger:hover {
  background-color: rgba(229, 56, 53, 0.3);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s;
}

.modal.active {
  visibility: visible;
  opacity: 1;
}

.modal-content {
  background-color: white;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #1a237e;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #78909c;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.modal-close:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #1a237e;
}

.modal form {
  padding: 1.5rem;
}

.modal .material-input {
  margin-bottom: 1.5rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

.material-alert {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
  animation: slideIn 0.3s ease;
}

.material-alert.success {
  background-color: #e8f5e9;
  border-left: 4px solid #43a047;
  color: #2e7d32;
}

.material-alert.error {
  background-color: #ffebee;
  border-left: 4px solid #e53935;
  color: #c62828;
}

.material-alert code {
  background-color: rgba(255, 255, 255, 0.5);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: monospace;
  font-weight: 500;
}

.flash-close {
  background: none;
  border: none;
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  font-size: 1.25rem;
  transition: opacity 0.2s;
}

.flash-close:hover {
  opacity: 1;
}

/* Animations */
@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Badges d'état */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}

.status-badge.active {
  background-color: #43a047;
}

.status-badge.inactive {
  background-color: #e53935;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .search-filters {
    flex-direction: column;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .action-buttons {
    flex-direction: column;
  }

  .action-buttons button {
    width: 100%;
  }
}

/* Badge de réinitialisation */
.password-reset-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background-color: #fff3e0;
  color: #e65100;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

/* Animation pour les badges et actions */
.material-button .ripple,
.promo-badge .ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* Tooltip personnalisé */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 0.75rem;
  background-color: #212121;
  color: white;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  z-index: 100;
}

[data-tooltip]:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-8px);
}

/* Styles pour les statistiques en haut de page */
.stats-overview {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.stats-title {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #1a237e;
  font-size: 1.25rem;
  font-weight: 500;
}

.stats-grid,
.stats-grid_requests {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  background-color: #f5f7fa;
  border-radius: 8px;
  transition: all 0.2s;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #1976d2;
  line-height: 1;
  margin: 0.5rem 0;
}

.stat-text {
  color: #546e7a;
  font-size: 0.875rem;
}

.stat-icon {
  font-size: 2rem;
  color: #90caf9;
}

/* Styles pour les actions rapides */
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.quick-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  color: #455a64;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
}

.quick-action-btn:hover {
  background-color: #f5f7fa;
  border-color: #90a4ae;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quick-action-btn .material-icons {
  color: #1976d2;
}

/* Filter active state */
.filter-active {
  background-color: #e3f2fd;
  color: #0277bd;
  border-color: #64b5f6;
}

.filter-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  background-color: #e3f2fd;
  color: #0277bd;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  gap: 0.25rem;
  margin-left: 0.5rem;
}

.filter-badge .material-icons {
  font-size: 1rem;
}

.filter-badge-close {
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.filter-badge-close:hover {
  opacity: 1;
}

/* Empty state */
.empty-state {
  padding: 3rem;
  text-align: center;
  color: #78909c;
}

.empty-state-icon {
  font-size: 4rem;
  color: #cfd8dc;
  margin-bottom: 1rem;
}

.empty-state-text {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

/* SVG Loading animation */
.loading-spinner {
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Skeleton loading placeholders */
.skeleton {
  animation: skeleton-loading 1.5s infinite;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* Fond semi-transparent */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  backdrop-filter: blur(5px);
  /* Effet de flou sur l'arrière-plan */
}

.modal.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--card-bg);
  border-radius: 12px;
  /* Coins plus arrondis */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  /* Ombre plus prononcée */
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalFadeIn 0.3s forwards;
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* Bordure subtile */
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(var(--primary-color-rgb), 0.05);
  /* Fond légèrement coloré */
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary-color);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--text-color);
  background-color: rgba(0, 0, 0, 0.05);
}

.modal form {
  padding: 1.75rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.confirm-message {
  padding: 2rem 1.75rem;
  text-align: center;
}

.confirm-message p {
  margin: 0.75rem 0;
  line-height: 1.5;
}

.confirm-message strong {
  color: var(--primary-color);
}

/* Styles pour les contenus des modales */
.session-details {
  padding: 1.75rem;
}

/* Amélioration des champs de formulaire dans les modales */
.modal .material-input {
  margin-bottom: 1.5rem;
}

.modal .material-input input,
.modal .material-input select,
.modal .material-input textarea {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.3s;
}

.modal .material-input input:focus,
.modal .material-input select:focus,
.modal .material-input textarea:focus {
  box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
}

/* Animation de fermeture */
@keyframes modalFadeOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
}

.modal.closing .modal-content {
  animation: modalFadeOut 0.3s forwards;
}

/* Styles pour le calendrier */
.calendar-container {
  padding: 1rem;
}

.calendar-header {
  margin-bottom: 2rem;
}

.calendar-month-header.extra-dates {
  margin-top: 2rem;
  color: #9c27b0;
  /* Couleur différente pour la section des dates supplémentaires */
  border-bottom: 1px dashed var(--border-color);
}

.calendar-event.extra-date {
  border-left: 4px solid #9c27b0;
  /* Bordure violette pour les distinguer */
}

.calendar-date.extra {
  background-color: #9c27b0;
  /* Fond violet pour les distinguer */
}

.calendar-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.calendar-month-header {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--primary-color);
  margin: 1rem 0 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  text-transform: capitalize;
}

.calendar-event {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-radius: 8px;
  background-color: var(--card-bg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.calendar-event:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.calendar-event.has-events {
  border-left: 4px solid var(--primary-color);
}

.calendar-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  margin-right: 1rem;
}

.date-number {
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1;
}

.date-day {
  font-size: 0.8rem;
  text-transform: capitalize;
}

.calendar-session-info {
  flex: 1;
}

.calendar-session-info h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.event-count {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Styles pour les événements */
.event-type-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
}

.event-type-badge.cours {
  background-color: #4caf50;
  color: white;
}

.event-type-badge.devoir {
  background-color: #ff9800;
  color: white;
}

.event-type-badge.examen {
  background-color: #f44336;
  color: white;
}

.event-type-badge.projet {
  background-color: #2196f3;
  color: white;
}

.event-type-badge.autre {
  background-color: #9e9e9e;
  color: white;
}

/* Style pour le sélecteur de séance */
#session_select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--input-bg);
  margin-bottom: 1rem;
  font-family: inherit;
  font-size: 1rem;
}

#session_select:focus {
  border-color: var(--primary-color);
  outline: none;
}

/* Styles pour la liste d'événements dans le modal */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.event-item {
  padding: 1rem;
  border-radius: 8px;
  background-color: var(--card-bg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.event-item.cours {
  border-left: 4px solid #4caf50;
}

.event-item.devoir {
  border-left: 4px solid #ff9800;
}

.event-item.examen {
  border-left: 4px solid #f44336;
}

.event-item.projet {
  border-left: 4px solid #2196f3;
}

.event-item.autre {
  border-left: 4px solid #9e9e9e;
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.event-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.event-description {
  margin-bottom: 1rem;
  white-space: pre-line;
}

.event-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.session-date {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  text-transform: capitalize;
}

/* État vide */
.empty-state.small {
  padding: 2rem;
}

.empty-state.small .material-icons {
  font-size: 2rem;
}

/* Styles pour le calendrier */
.calendar-container {
  padding: 1rem;
}

.calendar-header {
  margin-bottom: 2rem;
}

.calendar-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.calendar-month-header {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--primary-color);
  margin: 1rem 0 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  text-transform: capitalize;
}

.calendar-event {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-radius: 8px;
  background-color: var(--card-bg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.calendar-event:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.calendar-event.has-events {
  border-left: 4px solid var(--primary-color);
}

.calendar-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  margin-right: 1rem;
}

.date-number {
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1;
}

.date-day {
  font-size: 0.8rem;
  text-transform: capitalize;
}

.calendar-session-info {
  flex: 1;
}

.calendar-session-info h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.event-count {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Styles pour les événements */
.event-type-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
}

.event-type-badge.cours {
  background-color: #4caf50;
  color: white;
}

.event-type-badge.devoir {
  background-color: #ff9800;
  color: white;
}

.event-type-badge.examen {
  background-color: #f44336;
  color: white;
}

.event-type-badge.projet {
  background-color: #2196f3;
  color: white;
}

.event-type-badge.autre {
  background-color: #9e9e9e;
  color: white;
}

/* Style pour le sélecteur de séance */
#session_select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--input-bg);
  margin-bottom: 1rem;
  font-family: inherit;
  font-size: 1rem;
}

#session_select:focus {
  border-color: var(--primary-color);
  outline: none;
}

/* Styles pour la liste d'événements dans le modal */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.event-item {
  padding: 1rem;
  border-radius: 8px;
  background-color: var(--card-bg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.event-item.cours {
  border-left: 4px solid #4caf50;
}

.event-item.devoir {
  border-left: 4px solid #ff9800;
}

.event-item.examen {
  border-left: 4px solid #f44336;
}

.event-item.projet {
  border-left: 4px solid #2196f3;
}

.event-item.autre {
  border-left: 4px solid #9e9e9e;
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.event-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.event-description {
  margin-bottom: 1rem;
  white-space: pre-line;
}

.event-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.session-date {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  text-transform: capitalize;
}

/* État vide */
.empty-state.small {
  padding: 2rem;
}

.empty-state.small .material-icons {
  font-size: 2rem;
}

/* Styles pour les modales */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 1);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalFadeIn 0.3s forwards;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--text-color);
}

.modal form {
  padding: 1.5rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

.confirm-message {
  padding: 1.5rem;
  text-align: center;
}

.confirm-message p {
  margin: 0.5rem 0;
}

.admin-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.view-toggle {
  display: flex;
  border-radius: 4px;
  overflow: hidden;
}

.view-toggle button {
  margin: 0;
  border-radius: 0;
}

.view-toggle button:first-child {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.view-toggle button:last-child {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.view-toggle button.active {
  background-color: var(--primary-color);
  color: white;
}

/* Styles pour les conteneurs de vue */
.view-container {
  display: none;
}

.view-container.active {
  display: block;
}

/* Styles pour le calendrier mensuel */
.calendar-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.calendar-controls h2 {
  margin: 0;
  font-size: 1.5rem;
}

.monthly-calendar {
  padding: 0 1rem 1rem;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.calendar-weekdays div {
  padding: 0.5rem;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

.calendar-day {
  aspect-ratio: 1;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.5rem;
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.calendar-day:hover {
  background-color: rgba(var(--primary-color-rgb), 0.05);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendar-day.empty {
  background-color: transparent;
  border: none;
  cursor: default;
}

.calendar-day.empty:hover {
  transform: none;
  box-shadow: none;
}

.calendar-day.has-events {
  background-color: rgba(var(--primary-color-rgb), 0.05);
}

.calendar-day.is-session {
  border: 2px solid var(--primary-color);
}

.day-number {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.event-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: auto;
}

.event-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.event-indicator.cours {
  background-color: #4caf50;
}

.event-indicator.devoir {
  background-color: #ff9800;
}

.event-indicator.examen {
  background-color: #f44336;
}

.event-indicator.projet {
  background-color: #2196f3;
}

.event-indicator.autre {
  background-color: #9e9e9e;
}

/* Styles pour les boutons d'icônes */
.material-button.icon-only {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Styles pour les images de fond des projets */
.project-details-header {
  position: relative;
  color: #fff;
  padding: 2rem;
  margin: 1rem 0;
  border-radius: 5px;
  box-shadow: var(--shadow-1);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.project-details-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.project-details-header>* {
  position: relative;
  z-index: 2;
}

/* Images de fond par type de projet */
.project-details-header[data-type="restaurant"] {
  background-image: url("../img/hero/restaurant.jpg");
}

.project-details-header[data-type="association"] {
  background-image: url("../img/hero/association.jpg");
}

.project-details-header[data-type="sport"] {
  background-image: url("../img/hero/sport.jpg");
}

.project-details-header[data-type="artisan"] {
  background-image: url("../img/hero/artisan.jpg");
}

.project-details-header[data-type="default"] {
  background-image: url("../img/hero/default.jpg");
}

.settings-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.settings-header {
  text-align: center;
  margin-bottom: 2rem;
}

.settings-header h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  color: var(--text-primary);
}

.settings-section {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.settings-section-header {
  padding: 1.5rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s;
}

.settings-section-header:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-title h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.section-title .material-icons {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.expand-icon {
  transition: transform 0.2s;
  color: var(--text-secondary);
}

.expand-icon.active {
  transform: rotate(180deg);
}

.settings-section-content {
  padding: 1.5rem;
}

.settings-form {
  max-width: 600px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.figma-form .form-grid {
  grid-template-columns: 1fr 2fr !important;
}

.figma-form .form-grid div {
  width: 100% !important;
}

.avatar-section {
  margin-bottom: 2rem;
  text-align: center;
}

.avatar-section h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.avatar-upload-container {
  display: flex;
  justify-content: center;
}

.notification-options h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.notification-checkbox {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  gap: 1rem;
}

.notification-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.notification-checkbox label {
  margin: 0;
  color: var(--text-primary);
  cursor: pointer;
  flex: 1;
}

.notification-sub-options {
  margin-left: 2rem;
  margin-top: 1rem;
}

.checkbox-section {
  margin: 1.5rem 0;
}

.security-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--background);
  border-radius: 8px;
}

.info-item .material-icons {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.info-item h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--text-primary);
}

.info-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.danger-section .settings-section-header {
  background-color: rgba(244, 67, 54, 0.05);
  border-bottom-color: rgba(244, 67, 54, 0.2);
}

.danger-section .section-title .material-icons {
  color: var(--error);
}

.danger-warning {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.2);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.danger-warning h3 {
  margin: 0 0 0.5rem;
  color: var(--error);
}

.danger-warning p {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.password-section {
  margin: 1.5rem 0;
}

.password-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.password-accordion-header h3 {
  margin: 0;
  color: var(--text-primary);
}

.accordion-icon {
  transition: transform 0.2s;
  color: var(--text-secondary);
}

.accordion-icon.active {
  transform: rotate(180deg);
}

.password-accordion-content {
  padding-top: 1rem;
}

.password-requirements {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--background);
  border-radius: 8px;
}

.password-requirements p {
  margin: 0 0 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.password-requirements ul {
  margin: 0;
  padding-left: 1.5rem;
}

.password-requirements li {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .settings-container {
    padding: 1rem;
  }

  .settings-section-header {
    padding: 1rem;
  }

  .settings-section-content {
    padding: 1rem;
  }
}

/* Styles pour la gestion des promos */

/* Navigation des filtres */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-tab {
  padding: 0.5rem 1rem;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
  color: #666;
}

.filter-tab:hover {
  background: #e0e0e0;
}

.filter-tab.active {
  background: #2196f3;
  color: white;
  border-color: #2196f3;
}

/* Table responsive avec styles pour promos */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.data-table th,
.data-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.data-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #333;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table tr:hover {
  background: #f8f9fa;
}

/* Statut toggle pour promos */
.status-toggle {
  display: flex;
  align-items: center;
}

.status-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.status-btn.active .material-icons {
  color: #4caf50;
  font-size: 1.5rem;
}

.status-btn.inactive .material-icons {
  color: #ff9800;
  font-size: 1.5rem;
}

/* Informations de promo */
.promo-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.promo-info strong {
  color: #333;
}

.badge {
  background: #e3f2fd;
  color: #1976d2;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge.inactive {
  background: #fff3e0;
  color: #f57c00;
}

/* Informations professeur */
.teacher-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.teacher-info strong {
  color: #333;
  font-size: 0.875rem;
}

.teacher-info small {
  color: #666;
  font-size: 0.75rem;
}

/* Boutons d'action */
.action-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.action-btn.delete {
  color: #f44336;
}

.action-btn.delete:hover {
  background: rgba(244, 67, 54, 0.1);
}

.action-btn .material-icons {
  font-size: 1.125rem;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.modal-header h2 {
  margin: 0;
  color: #333;
  font-size: 1.25rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  padding: 0.25rem;
  border-radius: 50%;
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.modal-form {
  padding: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
  font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.875rem;
  transition: all 0.2s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2196f3;
  box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #333;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.checkmark {
  position: relative;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1rem;
}

/* Statistiques spécifiques aux promos */
.stats-overview .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s;
}

.stats-grid .stat-card {
  padding: 1rem;
}

.stat-icon {
  background: #f5f5f5;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon .material-icons {
  font-size: 1.5rem;
  color: #666;
}

.stat-content h3 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: bold;
  color: #333;
}

.stat-content p {
  margin: 0;
  color: #666;
  font-size: 0.875rem;
}

/* Statut spécifique aux cartes */
.stat-card.active-promos {
  border-left-color: #4caf50;
}

.stat-card.active-promos .stat-icon {
  background: #e8f5e8;
}

.stat-card.active-promos .stat-icon .material-icons {
  color: #4caf50;
}

.stat-card.inactive-promos {
  border-left-color: #ff9800;
}

.stat-card.inactive-promos .stat-icon {
  background: #fff3e0;
}

.stat-card.inactive-promos .stat-icon .material-icons {
  color: #ff9800;
}

/* Responsive design */
@media (max-width: 768px) {
  .admin-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .stats-overview .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .filter-tabs {
    flex-wrap: wrap;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: 95%;
    margin: 1rem;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .data-table {
    font-size: 0.875rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.75rem 0.5rem;
  }
}

/* Styles pour les alertes Material */
.material-alert {
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.material-alert.error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

.material-alert.success {
  background: #e8f5e8;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.material-alert.warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.flash-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.flash-close:hover {
  opacity: 1;
}

/* Animation pour les transitions */
.promo-row {
  transition: all 0.3s ease;
}

.promo-row[style*="none"] {
  opacity: 0;
  transform: translateX(-10px);
}

/* Styles pour le material-button small */
.material-button.small {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  min-height: auto;
}

/* États de chargement */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #2196f3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Styles supplémentaires pour le système de gestion des promos */

/* Styles pour les alertes et notifications */
.material-alert {
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  border-left: 4px solid;
}

.material-alert.error {
  background: #ffebee;
  color: #c62828;
  border-left-color: #f44336;
}

.material-alert.success {
  background: #e8f5e8;
  color: #2e7d32;
  border-left-color: #4caf50;
}

.material-alert.warning {
  background: #fff3cd;
  color: #856404;
  border-left-color: #ff9800;
}

.material-alert.info {
  background: #e3f2fd;
  color: #1976d2;
  border-left-color: #2196f3;
}

.material-alert .material-icons {
  font-size: 1.5rem;
  opacity: 0.8;
}

.flash-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.flash-close:hover {
  opacity: 1;
}

/* Styles pour les badges de statut */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: capitalize;
}

.status-badge.active {
  background: #e8f5e8;
  color: #2e7d32;
}

.status-badge.inactive {
  background: #fff3e0;
  color: #f57c00;
}

.status-badge.neutral {
  background: #f5f5f5;
  color: #666;
}

.status-badge .material-icons {
  font-size: 1rem;
}

/* Styles pour les boutons de toggle de statut */
.status-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.status-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: scale(1.1);
}

.status-toggle.active .material-icons {
  color: #4caf50;
  font-size: 1.5rem;
}

.status-toggle.inactive .material-icons {
  color: #ff9800;
  font-size: 1.5rem;
}

.status-toggle:focus {
  outline: 2px solid rgba(33, 150, 243, 0.3);
  outline-offset: 2px;
}

/* Animation pour les changements de statut */
.status-toggle .material-icons {
  transition: all 0.3s ease;
}

.status-toggle:active .material-icons {
  transform: scale(0.9);
}

/* Styles pour les filtres */
.filter-section {
  margin: 1rem 0 2rem 0;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  color: #666;
  text-decoration: none;
  display: inline-block;
}

.filter-tab:hover {
  background: #e0e0e0;
  color: #333;
  text-decoration: none;
}

.filter-tab.active {
  background: #2196f3;
  color: white;
  border-color: #2196f3;
}

/* Styles pour les statistiques */
.stats-overview {
  margin: 2rem 0;
}

.stats-title {
  margin: 0 0 1rem 0;
  color: #333;
  font-size: 1.25rem;
  font-weight: 500;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-item {
  background: white;
  border-radius: 8px;
  padding: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  border-left: 4px solid #e0e0e0;
  transition: all 0.2s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.stat-item.active-stat {
  border-left-color: #4caf50;
}

.stat-item.warning-stat {
  border-left-color: #ff9800;
}

.stat-item.neutral-stat {
  border-left-color: #9e9e9e;
}

.stat-item.error-stat {
  border-left-color: #f44336;
}

.stat-icon {
  background: #f5f5f5;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #666;
}

.stat-item.active-stat .stat-icon {
  background: #e8f5e8;
  color: #4caf50;
}

.stat-item.warning-stat .stat-icon {
  background: #fff3e0;
  color: #ff9800;
}

.stat-item.neutral-stat .stat-icon {
  background: #f5f5f5;
  color: #9e9e9e;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.stat-text {
  color: #666;
  font-size: 0.875rem;
  margin: 0;
}

/* Styles pour les cartes de promo */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.promo-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-left: 4px solid #e0e0e0;
  overflow: hidden;
}

.promo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.promo-card[data-status="active"] {
  border-left-color: #4caf50;
}

.promo-card[data-status="inactive"] {
  border-left-color: #ff9800;
  opacity: 0.8;
}

.promo-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
  background: #fafafa;
}

.promo-title-section h3 {
  margin: 0 0 0.5rem 0;
  color: #333;
  font-size: 1.125rem;
}

.promo-years {
  color: #666;
  font-size: 0.875rem;
  font-weight: normal;
}

.promo-content {
  padding: 1.5rem;
}

.specialization {
  color: #666;
  font-size: 0.875rem;
  margin: 0 0 1rem 0;
  font-style: italic;
}

.teacher-info {
  margin: 1rem 0;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 6px;
}

.assigned-teacher strong {
  color: #333;
  display: block;
  margin-bottom: 0.5rem;
}

.teacher-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.teacher-email {
  color: #eee;
  font-size: 0.75rem;
}

.no-teacher {
  color: #999;
  font-style: italic;
  margin: 0;
}

.promo-stats {
  display: flex;
  gap: 2rem;
  margin: 1rem 0;
}

.promo-stats .stat-item {
  flex-direction: column;
  text-align: center;
  min-width: 0;
  padding: 1rem;
  gap: 0.5rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

.stat-label {
  font-size: 0.75rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.promo-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Styles pour les contrôles de statut */
.status-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-label {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-label.active {
  background: #e8f5e8;
  color: #2e7d32;
}

.status-label.inactive {
  background: #fff3e0;
  color: #f57c00;
}

/* Styles pour les modaux */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
  background: #fafafa;
}

.modal-header h2 {
  margin: 0;
  color: #333;
  font-size: 1.25rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  padding: 0.25rem;
  border-radius: 50%;
  transition: all 0.2s;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #333;
}

.modal-form {
  padding: 1.5rem;
}

/* Styles pour les cases à cocher */
.checkbox-group {
  margin: 1rem 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #333;
  padding: 0.5rem 0;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2196f3;
}

.checkmark {
  position: relative;
}

.action-btn,
.icon-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

.action-btn:hover,
.icon-button:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #333;
}

.action-btn.delete {
  color: #f44336;
}

.action-btn.delete:hover {
  background: rgba(244, 67, 54, 0.1);
  color: #d32f2f;
}

.action-btn .material-icons,
.icon-button .material-icons {
  font-size: 1.125rem;
}

/* Styles pour les liens d'alerte */
.alert-link {
  color: inherit;
  text-decoration: underline;
  font-weight: 500;
  transition: opacity 0.2s;
}

.alert-link:hover {
  opacity: 0.8;
  color: inherit;
  text-decoration: underline;
}

/* Styles pour les options inactives dans les sélecteurs */
.inactive-option {
  color: #ff9800 !important;
  font-style: italic;
}

optgroup {
  font-weight: bold;
  font-style: normal;
}

optgroup option {
  font-weight: normal;
  padding-left: 1rem;
}

/* Styles pour les boîtes d'information */
.info-box,
.promo-info-card {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-left: 4px solid #2196f3;
  border-radius: 6px;
  padding: 1rem;
  margin: 1rem 0;
}

.info-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: #2196f3;
  font-weight: 500;
}

.info-header .material-icons {
  font-size: 1.25rem;
}

.info-content p {
  margin: 0.5rem 0;
  color: #666;
}

/* Styles pour les messages "aucun résultat" */
.no-students-notice,
.no-students-message {
  text-align: center;
  padding: 3rem 2rem;
  color: #666;
  background: #fafafa;
  border-radius: 8px;
  border: 1px dashed #ddd;
}

.no-students-notice .material-icons,
.no-students-message .material-icons {
  font-size: 4rem;
  color: #ccc;
  margin-bottom: 1rem;
  display: block;
}

.no-students-notice h3,
.no-students-notice h4,
.no-students-message h3 {
  margin: 1rem 0;
  color: #333;
}

.no-students-notice .actions,
.no-students-message .actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Animations et transitions */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.promo-card {
  animation: fadeIn 0.3s ease-out;
}

.material-alert {
  animation: slideIn 0.3s ease-out;
}

/* Transitions pour les changements de statut */
.promo-card.status-changing {
  transition: all 0.5s ease;
}

.promo-card.status-changing .status-toggle {
  animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

/* Responsive design */
@media (max-width: 1200px) {
  .promo-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }

  .profile-header-card {
    margin: 1rem;
  }

  .stat-item {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .promo-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .promo-header {
    padding: 1rem;
  }

  .promo-content {
    padding: 1rem;
  }

  .promo-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .filter-tabs {
    flex-direction: column;
    gap: 0.5rem;
  }

  .filter-tab {
    text-align: center;
  }

  .modal-content {
    width: 95%;
    margin: 1rem;
  }

  .no-students-notice .actions,
  .no-students-message .actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .promo-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .material-alert {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .status-controls {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
}

/* Mode sombre (optionnel) 
@media (prefers-color-scheme: dark) {
  .promo-card,
  .modal-content,
  .info-box,
  .promo-info-card {
    background: #2d2d2d;
    color: #e0e0e0;
    border-color: #555;
  }

  .teacher-info {
    background: #333;
  }

  .stat-item {
    color: #e0e0e0;
  }

  .filter-tab {
    background: #333;
    color: #e0e0e0;
    border-color: #555;
  }

  .filter-tab:hover {
    background: #444;
  }

  .material-alert.warning {
    background: #3d3d2d;
    color: #ffb74d;
  }

  .no-students-notice,
  .no-students-message {
    background: #333;
    color: #e0e0e0;
    border-color: #555;
  }
}
  */

/* Styles pour l'impression */
@media print {

  .status-toggle,
  .action-buttons,
  .filter-section,
  .promo-actions,
  .modal {
    display: none !important;
  }

  .promo-card {
    break-inside: avoid;
    margin-bottom: 1rem;
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}