/* Etu Instructor Dashboard and Login Styles */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: oklch(0.98 0.005 285);
  color: oklch(0.24 0.03 285);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: oklch(0.85 0.02 285);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: oklch(0.75 0.03 285);
}

/* Loading animations */
.app-loading-container {
  position: fixed;
  inset: 0;
  background: oklch(0.3 0.08 285);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: white;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: oklch(0.7 0.15 285);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Form Styles for Auth and Editing */
.auth-input-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-label {
  font-size: 13px;
  font-weight: 700;
  color: oklch(0.4 0.02 285);
}

.auth-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid oklch(0.88 0.015 285);
  font-family: inherit;
  font-size: 14.5px;
  color: oklch(0.24 0.03 285);
  background: oklch(0.99 0.005 285);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input:focus {
  outline: none;
  border-color: oklch(0.55 0.18 285);
  box-shadow: 0 0 0 3px oklch(0.55 0.18 285 / 0.15);
}

.auth-btn {
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  border: none;
  background: oklch(0.55 0.18 285);
  color: white;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: filter 0.2s, transform 0.1s;
}

.auth-btn:hover {
  filter: brightness(1.08);
}

.auth-btn:active {
  transform: scale(0.98);
}

.auth-btn-secondary {
  background: transparent;
  color: oklch(0.55 0.18 285);
  border: 1px solid oklch(0.85 0.03 285);
}

.auth-btn-secondary:hover {
  background: oklch(0.97 0.01 285);
}

/* Modal dialog for profile edit */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  background: white;
  border-radius: 20px;
  border: 1px solid oklch(0.91 0.012 285);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  padding: 24px;
}

.modal-header {
  margin-bottom: 20px;
}

.modal-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: oklch(0.24 0.03 285);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.modal-btn {
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
}

/* Overlay Uploader loader */
.upload-overlay {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: white;
  border-radius: 12px;
  border: 1px solid oklch(0.9 0.012 285);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  padding: 14px 18px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
}

.progress-bar-container {
  flex: 1;
  height: 6px;
  background: oklch(0.92 0.01 285);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: oklch(0.55 0.18 285);
  transition: width 0.2s ease;
}
