/* Auth Styles */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 20px;
}

.auth-page .site-header,
.auth-page .site-footer {
  display: none;
}

.auth-container {
  width: 100%;
  max-width: 420px;
}

.auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 16px;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 8px;
}

.auth-header h1 {
  font-size: 1.75rem;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.auth-header p {
  color: #666;
}

.auth-form .form-group {
  margin-bottom: 20px;
}

.auth-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.auth-form input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e5eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form input:focus {
  outline: none;
  border-color: #7a0f18;
  box-shadow: 0 0 0 3px rgba(122, 15, 24, 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: #7a0f18;
  color: #fff;
}

.btn-primary:hover {
  background: #5c0a11;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(122, 15, 24, 0.3);
}

.btn-block {
  width: 100%;
}

.btn-success {
  background: #10b981;
  color: #fff;
}

.btn-danger {
  background: #ef4444;
  color: #fff;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e1e5eb;
}

.auth-footer p {
  color: #666;
  margin: 8px 0;
}

.auth-footer a {
  color: #7a0f18;
  text-decoration: none;
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Login button in nav */
.nav .login-btn {
  background: #7a0f18;
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  transition: background 0.2s;
}

.nav .login-btn:hover {
  background: #5c0a11;
  color: #fff;
}

/* Dashboard Styles */
.dashboard-page {
  background: #f8f9fa;
  min-height: 100vh;
}

.dashboard-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  padding: 24px 0;
  margin-bottom: 32px;
}

.dashboard-header h1 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.dashboard-header p {
  opacity: 0.8;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.stat-card h3 {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 8px;
}

.stat-card .value {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
}

.dashboard-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}

@media (max-width: 900px) {
  .dashboard-content {
    grid-template-columns: 1fr;
  }
}

.content-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.content-card h2 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e1e5eb;
}

.course-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.course-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid #e1e5eb;
  border-radius: 8px;
  transition: box-shadow 0.2s;
}

.course-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.course-thumb {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  background: #f0f0f0;
}

.course-info {
  flex: 1;
}

.course-info h4 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: #1a1a2e;
}

.course-info p {
  font-size: 0.875rem;
  color: #666;
}

.course-meta {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 0.8rem;
  color: #888;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-pending {
  background: #fef3c7;
  color: #92400e;
}

.badge-confirmed {
  background: #d1fae5;
  color: #065f46;
}

.badge-completed {
  background: #dbeafe;
  color: #1e40af;
}

.badge-cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.sidebar-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sidebar-card h3 {
  font-size: 1rem;
  margin-bottom: 16px;
}

.user-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  color: #333;
  text-decoration: none;
  transition: background 0.2s;
}

.user-menu a:hover,
.user-menu a.active {
  background: #f0f0f0;
  color: #7a0f18;
}

/* Course Detail */
.course-detail-header {
  background: linear-gradient(135deg, rgba(122,15,24,0.9), rgba(198,40,40,0.7));
  color: #fff;
  padding: 40px 0;
}

.course-detail-header h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.course-detail-header .meta {
  opacity: 0.9;
  font-size: 1rem;
}

.course-detail-body {
  padding: 40px 0;
}

.course-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

@media (max-width: 768px) {
  .course-detail-grid {
    grid-template-columns: 1fr;
  }
}

.course-detail-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.course-detail-card h2 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.course-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.course-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.course-info-item .icon {
  width: 40px;
  height: 40px;
  background: #f0f0f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.course-info-item .label {
  color: #666;
  font-size: 0.875rem;
}

.course-info-item .value {
  font-weight: 600;
  color: #333;
}

.enroll-section {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 20px;
}

.enroll-section .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #7a0f18;
  margin-bottom: 16px;
}

.enroll-section .spots {
  color: #666;
  font-size: 0.875rem;
  margin-bottom: 16px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px;
  color: #666;
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.empty-state h3 {
  margin-bottom: 8px;
  color: #333;
}
