:root {
  color: #0f172a;
  background: #f8fafc;
  font-family: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  min-height: 100vh;
}

body {
  margin: 0;
  background: #f8fafc;
  color: #0f172a;
  font-family: "Inter", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.slide-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background-color: #f1f5f9;
}

.landing-slide {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.auth-slide {
  min-height: 100vh;
  display: flex;
  overflow: hidden;
  background: #ffffff;
}

.glass-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}

.nav-link {
  position: relative;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -21px;
  height: 2px;
  background: #2563eb;
}

.custom-scroll {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.custom-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scroll::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 999px;
}

.lesson-card {
  transition: all 0.2s ease;
}

.lesson-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -18px rgba(15, 23, 42, 0.35);
  border-color: #bfdbfe;
}

.invite-card {
  transition: all 0.2s ease;
}

.invite-card:hover {
  transform: translateX(4px);
  border-color: #bfdbfe;
}

.input-group:focus-within label,
.input-group:focus-within i {
  color: #2563eb;
}

.input-group:focus-within input,
.input-group:focus-within textarea,
.input-group:focus-within select {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.editor-input {
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.editor-input:hover {
  background-color: #f8fafc;
  border-color: #e2e8f0;
}

.editor-input:focus {
  background-color: #ffffff;
  border-color: #bfdbfe;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

.ai-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.ai-card:hover {
  border-color: #a5b4fc;
  box-shadow: 0 4px 12px -10px rgba(99, 102, 241, 0.35);
}

.admin-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 16px;
  font-weight: 600;
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  color: #334155;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background-color: #f8fafc;
}

.custom-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

.decor-circle {
  position: absolute;
  border-radius: 999px;
}

.ui-browser-mockup {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
}

.ui-browser-header {
  height: 32px;
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
}

.ui-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.status-error,
.status-success,
.status-info {
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  border: 1px solid transparent;
}

.status-error {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

.status-success {
  color: #166534;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.status-info {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.empty-state {
  border: 1px dashed #cbd5e1;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 1rem;
}

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

@media (max-width: 1024px) {
  .nav-link.active::after {
    display: none;
  }
}
