/* Mobile-first responsive design */
html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin-bottom: 60px;
  background-color: #f5f5f5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.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 #667eea;
}

/* Mobile-optimized navbar */
.navbar {
  padding: 0.5rem 0;
}

.navbar-brand {
  font-size: 1.1rem;
}

.navbar-nav .nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
}

/* Mobile-friendly container */
.container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}

/* Touch-friendly buttons */
.btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  min-height: 44px; /* Minimum touch target size */
}

/* Mobile-optimized forms */
.form-control {
  font-size: 16px; /* Prevents zoom on iOS */
  padding: 0.75rem;
  min-height: 44px;
}

/* Responsive tables */
@media (max-width: 768px) {
  .table-responsive {
    font-size: 0.875rem;
  }
}

/* Footer adjustments */
.footer {
  font-size: 0.875rem;
  padding: 1rem 0;
}

/* Prevent horizontal scroll on mobile */
body {
  overflow-x: hidden;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}