/* Extrait de student_dashboard.html. Ordre historique : 10. */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========== TOOLBAR HORIZONTALE COMPACTE ========== */
.tp-main-content-full {
  width: 100%;
}

.tp-toolbar-enhanced {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
  padding: 16px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border);
  flex-wrap: wrap;
  box-shadow: 0 2px 10px var(--shadow);
}

.search-box {
  flex: 1;
  min-width: 200px;
}

.search-box input {
  width: 100%;
  padding: 10px 16px;
  background: rgba(124, 58, 237, 0.05);
  border: 2px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.search-box input::placeholder {
  color: var(--text-secondary);
}

/* Pills de filtrage */
.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(124, 58, 237, 0.08);
  border: 2px solid transparent;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.3s;
  white-space: nowrap;
}

.filter-pill:hover {
  background: rgba(124, 58, 237, 0.15);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.filter-pill.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 11px;
  font-size: 0.75rem;
  font-weight: 700;
}

.filter-pill.active .pill-count {
  background: rgba(255, 255, 255, 0.3);
}

/* Select de tri compact */
.sort-select-compact {
  padding: 8px 14px;
  background: rgba(124, 58, 237, 0.08);
  border: 2px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.sort-select-compact:focus {
  outline: none;
  border-color: var(--primary);
}

/* La liste déroulante native est dessinée par le système : ses options
   doivent recevoir des couleurs explicites, sinon texte blanc sur blanc. */
select.sort-select-compact { color-scheme: dark; }
select.sort-select-compact option {
  background-color: var(--bg-card, #1e1b2e);
  color: var(--text-primary, #ffffff);
}

.sort-select-compact:hover {
  background: rgba(124, 58, 237, 0.15);
}

/* Stats compactes */
.stats-compact {
  display: flex;
  gap: 12px;
  padding-left: 12px;
  border-left: 2px solid var(--border);
}

.stat-compact-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 10px;
}

.stat-compact-icon {
  font-size: 1.2rem;
}

.stat-compact-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--success);
}

/* Responsive */
@media (max-width: 1200px) {
  .stats-compact {
    display: none;
  }
}

@media (max-width: 768px) {
  .tp-toolbar-enhanced {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-pills {
    width: 100%;
    justify-content: space-between;
  }
  
  .filter-pill {
    flex: 1;
    justify-content: center;
    font-size: 0.8rem;
    padding: 8px 10px;
  }
  
  .search-box {
    width: 100%;
  }
  
  .sort-select-compact {
    width: 100%;
  }
  
}

/* Grid TP */
.tp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Cartes TP */
.tp-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s;
  cursor: pointer;
}

.tp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow);
  border-color: var(--primary);
}

/* Message vide */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 2px dashed var(--border);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Toggle mobile */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ========== FIN SIDEBAR TP ========== */
