/* ========================================
   SYSTÈME DE RECHERCHE GLOBALE - THÈME MODERNE
   ======================================== */

.global-search-container {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 650px;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* État rétracté de la barre de recherche */
.global-search-container.collapsed {
  top: 20px;
  right: 20px;
  left: auto;
  transform: none;
  width: 56px;
  height: 56px;
  max-width: 56px;
}

.global-search-container.collapsed .search-input-wrapper {
  padding: 0;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.global-search-container.collapsed .search-input-wrapper:hover {
  transform: scale(1.1);
  box-shadow: 
    0 12px 30px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(59, 130, 246, 0.4) inset,
    0 0 80px rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.6);
}

.global-search-container.collapsed .global-search-input,
.global-search-container.collapsed .search-shortcut,
.global-search-container.collapsed .global-search-results {
  display: none;
}

.global-search-container.collapsed .search-icon {
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Bouton toggle pour rétracter/déployer */
.search-toggle-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95) 0%, rgba(139, 92, 246, 0.95) 100%);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  font-weight: bold;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.4),
    0 0 0 2px rgba(59, 130, 246, 0.2);
  z-index: 11;
  line-height: 1;
}

.search-toggle-btn:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.95) 100%);
  border-color: rgba(255, 255, 255, 1);
  transform: scale(1.2) rotate(90deg);
  box-shadow: 
    0 6px 20px rgba(239, 68, 68, 0.6),
    0 0 30px rgba(239, 68, 68, 0.4);
}

.global-search-container.collapsed .search-toggle-btn {
  display: none;
}

/* Click handler pour le conteneur rétracté */
.global-search-container.collapsed .search-input-wrapper {
  position: relative;
}

.global-search-container.collapsed .search-input-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  animation: ripple 2s ease-out infinite;
}

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.search-input-wrapper {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 16px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(59, 130, 246, 0.1) inset,
    0 0 60px rgba(59, 130, 246, 0.15);
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input-wrapper:focus-within {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 
    0 24px 48px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(59, 130, 246, 0.3) inset,
    0 0 80px rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

.search-icon {
  font-size: 1.3rem;
  margin-right: 1rem;
  color: #3b82f6;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.global-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 1.1rem 0;
  font-size: 1rem;
  color: #f8fafc;
  background: transparent;
  font-weight: 500;
}

.global-search-input::placeholder {
  color: #94a3b8;
}

.search-shortcut {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.global-search-results {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(59, 130, 246, 0.25);
  border-radius: 16px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(59, 130, 246, 0.1) inset;
  max-height: 70vh;
  overflow-y: auto;
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-results-list {
  padding: 0.75rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  padding: 1.1rem 1.25rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 1.25rem;
  background: rgba(30, 41, 59, 0.3);
  border: 1px solid transparent;
  margin-bottom: 0.5rem;
}

.search-result-item:hover,
.search-result-item.selected {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateX(6px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.result-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.3));
}

.result-content {
  flex: 1;
  min-width: 0;
}

.result-title {
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 0.35rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.95rem;
}

.result-title mark {
  background: rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 700;
}

.result-subtitle {
  font-size: 0.8rem;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-type {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.search-no-results {
  text-align: center;
  padding: 3rem 1.5rem;
  color: #cbd5e1;
}

.search-no-results span {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 1rem;
  filter: grayscale(0.3);
}

.search-no-results p {
  font-size: 1rem;
  margin: 0;
  font-weight: 500;
}

/* ========================================
   MODAL PROFIL ÉLÈVE - THÈME MODERNE
   ======================================== */
.eleve-profile-modal {
  max-width: 900px;
  max-height: 92vh;
  overflow-y: auto;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(8px);
  }
}

.modal-content {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 24px;
  box-shadow: 
    0 24px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(59, 130, 246, 0.2) inset,
    0 0 100px rgba(59, 130, 246, 0.1);
  animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideUp {
  from {
    transform: translateY(100px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2.5rem;
  border-bottom: 2px solid rgba(59, 130, 246, 0.2);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.modal-header h2 {
  margin: 0;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.modal-close {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
  border: 2px solid rgba(239, 68, 68, 0.3);
  font-size: 1.5rem;
  cursor: pointer;
  color: #fca5a5;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.5rem 0.75rem;
  line-height: 1;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal-close:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.4) 0%, rgba(220, 38, 38, 0.4) 100%);
  border-color: rgba(239, 68, 68, 0.6);
  transform: scale(1.1) rotate(90deg);
  box-shadow: 
    0 8px 20px rgba(239, 68, 68, 0.4),
    0 0 20px rgba(239, 68, 68, 0.3);
}

.modal-body {
  padding: 2.5rem;
  max-height: 70vh;
  overflow-y: auto;
}

/* Scrollbar styling pour modal */
.modal-body::-webkit-scrollbar {
  width: 10px;
}

.modal-body::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.6) 0%, rgba(139, 92, 246, 0.6) 100%);
  border-radius: 10px;
  border: 2px solid rgba(15, 23, 42, 0.5);
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.8) 0%, rgba(139, 92, 246, 0.8) 100%);
}

.profile-info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(59, 130, 246, 0.2);
  padding: 1.5rem 2rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(59, 130, 246, 0.1) inset;
}

.profile-info p {
  margin: 0.75rem 0;
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.6;
}

.profile-info p strong {
  color: #3b82f6;
  font-weight: 700;
}

.profile-section {
  margin-bottom: 2.5rem;
}

.profile-section h3 {
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-section h3::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  border-radius: 4px;
}

.observation-textarea {
  width: 100%;
  min-height: 150px;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.6);
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  color: #f8fafc;
  resize: vertical;
  margin-bottom: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.2) inset,
    0 0 0 1px rgba(59, 130, 246, 0.1) inset;
}

.observation-textarea::placeholder {
  color: #64748b;
}

.observation-textarea:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.6);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.3) inset,
    0 0 0 1px rgba(59, 130, 246, 0.3) inset,
    0 0 20px rgba(59, 130, 246, 0.2);
}

.notes-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.notes-filter label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.95em;
  color: #e2e8f0;
}

.notes-filter input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #3b82f6;
}

.notes-count {
  font-size: 0.9em;
  color: #94a3b8;
  font-style: italic;
}

.loading-notes {
  text-align: center;
  padding: 30px;
  color: #94a3b8;
  font-size: 1.1em;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.note-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.7) 100%);
  backdrop-filter: blur(8px);
  padding: 1.5rem;
  border-radius: 16px;
  border: 2px solid rgba(59, 130, 246, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(59, 130, 246, 0.1) inset;
  position: relative;
  overflow: hidden;
}

.note-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.note-card:hover {
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-4px);
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(59, 130, 246, 0.3) inset,
    0 0 30px rgba(59, 130, 246, 0.15);
}

.note-card:hover::before {
  opacity: 1;
}

.note-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
  gap: 0.75rem;
}

.note-header strong {
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 700;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}

.note-date {
  font-size: 0.75rem;
  color: #94a3b8;
  white-space: nowrap;
  background: rgba(59, 130, 246, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-weight: 600;
}

.eleve-profile-modal .note-value {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.3));
}

.btn-edit-note {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
  color: #3b82f6;
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-edit-note:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
  border-color: rgba(59, 130, 246, 0.6);
  color: #60a5fa;
  transform: translateY(-2px);
  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(59, 130, 246, 0.3);
}

.profile-actions {
  display: flex;
  gap: 1.5rem;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 2px solid rgba(59, 130, 246, 0.2);
}

.btn-primary,
.btn-secondary {
  flex: 1;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
  border-color: rgba(59, 130, 246, 0.5);
  color: #60a5fa;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.5) 0%, rgba(139, 92, 246, 0.5) 100%);
  border-color: rgba(59, 130, 246, 0.8);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: rgba(71, 85, 105, 0.2);
  border-color: rgba(71, 85, 105, 0.4);
  color: #94a3b8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
  background: rgba(71, 85, 105, 0.3);
  border-color: rgba(71, 85, 105, 0.6);
  color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.empty-state {
  text-align: center;
  color: #64748b;
  padding: 3rem 2rem;
  font-style: italic;
  font-size: 1.1rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 2px dashed rgba(59, 130, 246, 0.2);
  border-radius: 12px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
  .global-search-container {
    width: 95%;
    top: 60px;
    border-radius: 16px;
  }

  .search-input-wrapper {
    padding: 1rem 1.25rem;
  }

  .search-shortcut {
    display: none;
  }

  .search-result-item {
    padding: 1rem;
  }

  .notes-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: 95%;
    max-height: 95vh;
    border-radius: 20px;
  }

  .modal-header {
    padding: 1.5rem;
  }

  .modal-header h2 {
    font-size: 1.35rem;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .profile-actions {
    flex-direction: column;
  }

  .welcome-header h1 {
    font-size: 2rem;
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }

  .actions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .global-search-input {
    font-size: 0.9rem;
  }

  .result-title {
    font-size: 0.9rem;
  }

  .stat-value {
    font-size: 2rem;
  }

  .action-card {
    padding: 2rem 1.5rem;
  }
}

/* ========================================
   SCROLLBAR CUSTOMIZATION
   ======================================== */
.global-search-results::-webkit-scrollbar {
  width: 10px;
}

.global-search-results::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 10px;
}

.global-search-results::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.5) 0%, rgba(139, 92, 246, 0.5) 100%);
  border-radius: 10px;
  border: 2px solid rgba(15, 23, 42, 0.5);
}

.global-search-results::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.7) 0%, rgba(139, 92, 246, 0.7) 100%);
}

/* ========================================
   MODAL D'ÉDITION DE NOTE
   ======================================== */
.edit-note-modal {
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

.edit-note-info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border-left: 4px solid #3b82f6;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.edit-note-info p {
  margin: 0.5rem 0;
  color: #e2e8f0;
}

.form-group-edit-note {
  margin-bottom: 1.5rem;
}

.form-group-edit-note label {
  display: block;
  margin-bottom: 0.5rem;
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.95rem;
}

.edit-note-input {
  width: 100%;
  padding: 0.75rem;
  background: rgba(15, 23, 42, 0.5);
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  color: #f8fafc;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.edit-note-input:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(15, 23, 42, 0.7);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.edit-note-input:hover {
  border-color: rgba(59, 130, 246, 0.5);
}

#edit-note-commentaire {
  width: 100%;
  padding: 0.75rem;
  background: rgba(15, 23, 42, 0.5);
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  color: #f8fafc;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  transition: all 0.3s ease;
}

#edit-note-commentaire:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(15, 23, 42, 0.7);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.edit-note-total {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%);
  border: 2px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: #a7f3d0;
}

#edit-note-exercises {
  transition: opacity 0.3s ease;
}

.form-group-edit-note input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
  transform: scale(1.2);
  cursor: pointer;
}

.form-group-edit-note label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #fbbf24;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ========================================
   INCIDENTS - PROFIL ÉLÈVE
   ======================================== */

.incidents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.incident-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(30, 41, 59, 0.6) 100%);
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.3s ease;
}

.incident-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.incident-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.incident-icon {
  font-size: 1.5rem;
}

.incident-label {
  font-weight: 600;
  font-size: 1rem;
  color: #cbd5e1;
}

.incident-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
}

.incident-count {
  font-size: 2rem;
  font-weight: 800;
  color: #3b82f6;
  min-width: 60px;
  text-align: center;
  padding: 0.5rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border-radius: 12px;
  border: 2px solid rgba(59, 130, 246, 0.3);
}

.btn-incident-plus,
.btn-incident-moins {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-incident-plus {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.btn-incident-plus:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-incident-plus:active {
  transform: scale(0.95);
}

.btn-incident-moins {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.btn-incident-moins:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-incident-moins:active {
  transform: scale(0.95);
}

.incident-trimestres {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.tri-badge {
  padding: 0.25rem 0.75rem;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  font-size: 0.85rem;
  color: #93c5fd;
  font-weight: 500;
}

.incident-count-display {
  font-size: 2rem;
  font-weight: 800;
  color: #ef4444;
  text-align: center;
  padding: 0.5rem;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
  border-radius: 12px;
  border: 2px solid rgba(239, 68, 68, 0.3);
  margin: 1rem 0;
}

.absences-detail {
  margin-top: 1rem;
  max-height: 200px;
  overflow-y: auto;
}

.absence-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.absence-item.traite {
  opacity: 0.5;
  background: rgba(100, 116, 139, 0.1);
  border-color: rgba(100, 116, 139, 0.3);
}

.absence-devoir {
  font-weight: 600;
  color: #fca5a5;
}

.absence-date {
  color: #cbd5e1;
  font-size: 0.8rem;
}

.no-absences {
  text-align: center;
  padding: 1rem;
  color: #64748b;
  font-size: 0.85rem;
  font-style: italic;
}

/* ========================================
   MODAL GESTION ABSENCE
   ======================================== */

.absence-modal {
  max-width: 600px;
  width: 90%;
}

.absence-info {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(30, 41, 59, 0.6) 100%);
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.absence-info p {
  margin: 0.5rem 0;
  color: #cbd5e1;
}

.absence-question {
  margin: 1.5rem 0;
  text-align: center;
}

.absence-question h3 {
  color: #f8fafc;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.absence-explanation {
  text-align: left;
  background: rgba(59, 130, 246, 0.1);
  border-left: 4px solid #3b82f6;
  padding: 1rem;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
}

.absence-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-absence {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-absence.justified {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.btn-absence.justified:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.btn-absence.non-justified {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.btn-absence.non-justified:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}

.btn-absence:active {
  transform: translateY(0);
}

/* ========================================
   STYLES NOTES ABSENCES
   ======================================== */

.note-value.absent-justifie {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
  border: 2px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}

.note-value.absent-non-justifie {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
  border: 2px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-weight: 700;
}

/* ========================================
   COMMANDES ADMIN
   ======================================== */

.admin-commands .search-result-item {
  border-left: 4px solid #8b5cf6;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.1) 0%, transparent 100%);
}

.admin-commands .command-item:hover {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.2) 0%, transparent 100%);
  border-left-color: #a78bfa;
}

.command-help-modal {
  max-width: 600px;
}

.command-help-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem 0;
}

.command-help-item {
  padding: 1rem;
  background: rgba(139, 92, 246, 0.05);
  border-left: 4px solid #8b5cf6;
  border-radius: 8px;
}

.command-help-item code {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.command-help-item p {
  margin: 0.5rem 0 0 0;
  color: #cbd5e1;
  line-height: 1.6;
}

.notification-send-modal {
  max-width: 600px;
}

.notification-send-modal .form-group {
  margin-bottom: 1.5rem;
}

.notification-send-modal label {
  display: block;
  margin-bottom: 0.5rem;
  color: #f1f5f9;
  font-weight: 600;
  font-size: 0.9rem;
}

.notification-send-modal .form-control {
  width: 100%;
  padding: 0.75rem;
  background: #1e293b;
  border: 2px solid #475569;
  border-radius: 8px;
  color: #f1f5f9;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.notification-send-modal .form-control:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.notification-send-modal textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.notification-send-modal .alert-info {
  padding: 1rem;
  background: rgba(59, 130, 246, 0.1);
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
  margin-top: 1.5rem;
  color: #93c5fd;
}

.notification-send-modal .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #475569;
}

