html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* QuizHub Custom Styles */
.navbar-brand {
  font-weight: bold;
  color: #0d6efd !important;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
  background-color: #f8f9fa;
}

/* Card styles for better UI */
.card {
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Login form styling */
.login-container {
  max-width: 400px;
  margin: 50px auto;
}

.login-card {
  padding: 2rem;
  border: none;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Admin panel styling */
.admin-sidebar {
  background-color: #f8f9fa;
  min-height: calc(100vh - 120px);
}

.admin-content {
  padding: 2rem;
}

/* Table improvements */
.table th {
  border-top: none;
  font-weight: 600;
  color: #495057;
}

/* Button improvements */
.btn {
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.btn-success {
  background-color: #198754;
  border-color: #198754;
}

.btn-danger {
  background-color: #dc3545;
  border-color: #dc3545;
}

/* WowDash Enhanced Button Styles */
.btn-primary-600 {
  background-color: #487fff;
  border-color: #487fff;
  color: #fff;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary-600:hover {
  background-color: #2b5ce6;
  border-color: #2b5ce6;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(72, 127, 255, 0.3);
}

.btn-success-600 {
  background-color: #00bc7e;
  border-color: #00bc7e;
  color: #fff;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-success-600:hover {
  background-color: #00a96b;
  border-color: #00a96b;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 188, 126, 0.3);
}

.btn-danger-600 {
  background-color: #f04438;
  border-color: #f04438;
  color: #fff;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-danger-600:hover {
  background-color: #dd2f1f;
  border-color: #dd2f1f;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(240, 68, 56, 0.3);
}

.btn-info-600 {
  background-color: #16b1ff;
  border-color: #16b1ff;
  color: #fff;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-info-600:hover {
  background-color: #0ea5e9;
  border-color: #0ea5e9;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(22, 177, 255, 0.3);
}

.btn-warning-600 {
  background-color: #ffb220;
  border-color: #ffb220;
  color: #fff;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-warning-600:hover {
  background-color: #ea9c00;
  border-color: #ea9c00;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 178, 32, 0.3);
}

.btn-neutral-500 {
  background-color: #6c757d;
  border-color: #6c757d;
  color: #fff;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-neutral-500:hover {
  background-color: #5a6169;
  border-color: #5a6169;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(108, 117, 125, 0.3);
}

/* Outline Button Styles */
.btn-outline-neutral-300 {
  background-color: transparent;
  border: 1px solid #dee2e6;
  color: #495057;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-neutral-300:hover {
  background-color: #f8f9fa;
  border-color: #dee2e6;
  color: #495057;
}

.btn-outline-info-600 {
  background-color: transparent;
  border: 1px solid #16b1ff;
  color: #16b1ff;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-info-600:hover {
  background-color: #e3f2fd;
  border-color: #16b1ff;
  color: #16b1ff;
}

/* Button Sizes and Border Radius */
.radius-8 {
  border-radius: 8px;
}

.radius-12 {
  border-radius: 12px;
}

.px-20 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.py-11 {
  padding-top: 0.6875rem;
  padding-bottom: 0.6875rem;
}

/* Gap utilities for flex items */
.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

/* Icon styling */
.icon {
  display: inline-block;
}

.text-lg {
  font-size: 1.125rem;
}

.line-height-1 {
  line-height: 1;
}

/* Hover effects */
.hover-bg-neutral-100:hover {
  background-color: #f8f9fa !important;
}

.hover-bg-info-100:hover {
  background-color: #e3f2fd !important;
}

.border-info-600 {
  border-color: #16b1ff !important;
}

.text-info-600 {
  color: #16b1ff !important;
}

/* Additional outline button color variants */
.btn-outline-warning-600 {
  background-color: transparent;
  border: 1px solid #ffb220;
  color: #ffb220;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-success-600 {
  background-color: transparent;
  border: 1px solid #00bc7e;
  color: #00bc7e;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-danger-600 {
  background-color: transparent;
  border: 1px solid #f04438;
  color: #f04438;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* Border color utilities */
.border-warning-600 {
  border-color: #ffb220 !important;
}

.border-success-600 {
  border-color: #00bc7e !important;
}

.border-danger-600 {
  border-color: #f04438 !important;
}

/* Text color utilities */
.text-warning-600 {
  color: #ffb220 !important;
}

.text-success-600 {
  color: #00bc7e !important;
}

.text-danger-600 {
  color: #f04438 !important;
}

/* Hover background colors */
.hover-bg-warning-100:hover {
  background-color: #fff3cd !important;
}

.hover-bg-success-100:hover {
  background-color: #d1f2eb !important;
}

.hover-bg-danger-100:hover {
  background-color: #f8d7da !important;
}

/* Small text size for compact buttons */
.text-sm {
  font-size: 0.875rem;
}

/* Alert improvements */
.alert {
  border: none;
  border-radius: 0.5rem;
}

/* Loading spinner */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

/* Navbar improvements */
.navbar {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.navbar-nav .nav-link {
  font-weight: 500;
  transition: color 0.15s ease-in-out;
}

.navbar-nav .nav-link:hover {
  color: #0d6efd !important;
}

/* Dropdown improvements */
.dropdown-menu {
  border: none;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem;
  min-width: 250px;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: #0d6efd;
}

.dropdown-header {
  font-weight: 600;
  color: #6c757d;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dropdown-divider {
  margin: 0.5rem 0;
}

/* Admin Dashboard Cards */
.card.border-primary {
  border-left: 4px solid #0d6efd !important;
}

.card.border-info {
  border-left: 4px solid #0dcaf0 !important;
}

.card.border-success {
  border-left: 4px solid #198754 !important;
}

.card.border-warning {
  border-left: 4px solid #ffc107 !important;
}

.card.border-secondary {
  border-left: 4px solid #6c757d !important;
}

/* Dashboard Section Headers */
.h4 {
  font-weight: 600;
  color: #495057;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 0.5rem;
}

/* Card title colors */
.card-title.text-primary i {
  color: #0d6efd;
}

.card-title.text-info i {
  color: #0dcaf0;
}

.card-title.text-success i {
  color: #198754;
}

.card-title.text-warning i {
  color: #ffc107;
}

.card-title.text-secondary i {
  color: #6c757d;
}
