html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* Modern Color Scheme */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  --light-bg: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

/* Body Background */
body {
  background: var(--primary-gradient);
  min-height: 100vh;
}

/* Main content area with subtle background */
main {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  margin: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Sticky Footer Styles */
html,
body {
  height: 100%;
}

.footer {
  background: var(--dark-gradient) !important;
  border-top: none;
  color: white;
}

.footer .text-muted {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Navbar Styling */
.navbar-dark {
  background: var(--dark-gradient) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
}

/* Card Enhancements */
.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Button Improvements */
.btn-primary {
  background: var(--secondary-gradient);
  border: none;
  border-radius: 25px;
  padding: 10px 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline-primary {
  border: 2px solid #667eea;
  color: #667eea;
  border-radius: 25px;
  padding: 10px 25px;
  font-weight: 500;
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-gradient);
  border-color: transparent;
  transform: translateY(-2px);
}

/* Container Styling */
.container {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Alert Styling */
.alert-primary {
  background: var(--accent-gradient);
  border: none;
  color: white;
  border-radius: 15px;
}

/* Form Styling */
.form-control {
  border-radius: 10px;
  border: 2px solid rgba(102, 126, 234, 0.2);
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .footer .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .footer .text-md-end {
    text-align: center !important;
  }

  main {
    margin: 10px;
    border-radius: 15px;
  }

  .container {
    padding: 20px;
  }
}

/* Admin layout specific styles */
.admin-sidebar {
  min-height: 100vh;
  background: var(--dark-gradient);
}

.btn {
  border-radius: 0.375rem;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

/* Responsive utilities */
@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .navbar-brand {
    font-size: 1rem;
  }

  .navbar-brand small {
    font-size: 0.6rem;
  }

  .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }

  .display-4,
  .display-5 {
    font-size: 1.75rem !important;
  }

  .lead {
    font-size: 1rem;
  }

  /* Mobile table responsiveness */
  .table-responsive {
    border-radius: 10px;
    font-size: 0.875rem;
  }

  /* Mobile card adjustments */
  .card {
    margin-bottom: 1rem;
  }

  .card-body {
    padding: 1rem;
  }
}

/* Medium screen adjustments */
@media (max-width: 991.98px) {
  .navbar-brand small {
    display: block;
    font-size: 0.7rem;
    line-height: 1;
  }

  /* Mobile button adjustments */
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  /* Mobile display adjustments */
  .display-4,
  .display-5 {
    font-size: 2rem !important;
  }
}

/* Special styling for hero sections */
.display-4,
.display-5 {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
}

/* Icon styling */
.bi {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}