/* StudyMind — styles complémentaires à Tailwind */

* { scrollbar-width: thin; scrollbar-color: #c7d2fe #f1f5f9; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #c7d2fe; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #a5b4fc; }

body { font-family: 'Inter', system-ui, sans-serif; }

.glass {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.4);
}

.card-hover { transition: all 0.2s ease; }
.card-hover:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(99,102,241,0.18); }

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white; transition: all 0.2s ease;
}
.btn-primary:hover { box-shadow: 0 8px 20px -4px rgba(99,102,241,0.5); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.nav-item { transition: all 0.15s ease; }
.nav-item.active { background: linear-gradient(135deg, #6366f1, #4f46e5); color: white; box-shadow: 0 4px 12px -2px rgba(99,102,241,0.4); }
.nav-item:not(.active):hover { background: #eef2ff; }

.spinner {
  border: 3px solid #e0e7ff; border-top-color: #6366f1; border-radius: 50%;
  width: 24px; height: 24px; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast { animation: slideUp 0.3s ease-out, fadeIn 0.3s ease-out; }

.progress-bar { transition: width 0.6s cubic-bezier(0.4,0,0.2,1); }

.mastery-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

.modal-backdrop { animation: fadeIn 0.2s ease-out; }
.modal-panel { animation: slideUp 0.25s ease-out; }

.calendar-grid { display: grid; grid-template-columns: 60px repeat(7, 1fr); }

.drop-zone { border: 2px dashed #c7d2fe; transition: all 0.2s ease; }
.drop-zone.drag-over { border-color: #6366f1; background: #eef2ff; }

.exam-mode-active {
  position: fixed; inset: 0; z-index: 100; background: #0f172a;
}

.markdown-content h1, .markdown-content h2, .markdown-content h3 { font-weight: 700; margin: 0.5em 0; }
.markdown-content p { margin: 0.5em 0; }
.markdown-content ul, .markdown-content ol { margin: 0.5em 0; padding-left: 1.5em; }
.markdown-content li { margin: 0.2em 0; }
.markdown-content code { background: #f1f5f9; padding: 0.1em 0.4em; border-radius: 4px; font-size: 0.9em; }

.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
