html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin-bottom: 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Focus styles */
.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;
}

/* Card improvements */
.card {
  border-radius: 0.75rem;
}

.card-header {
  border-radius: 0.75rem 0.75rem 0 0 !important;
}

/* Form labels */
.form-label {
  font-size: 0.9rem;
}

/* Large touch targets for mobile */
@media (max-width: 576px) {
  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1.1rem;
  }

  .form-control, .form-select {
    padding: 0.75rem;
    font-size: 1rem;
  }

  .card-body {
    padding: 1.25rem !important;
  }
}

/* Loading overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
  display: none;
}

.loading-overlay.active {
  display: flex;
}

/* Toast positioning */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
}

/* Print styles for challan */
@media print {
  header, footer, .btn, .navbar {
    display: none !important;
  }

  .card {
    border: 1px solid #000 !important;
    box-shadow: none !important;
  }
}

/* Step indicator */
.step-indicator {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.step-indicator .step {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  background: #e9ecef;
  color: #6c757d;
}

.step-indicator .step.active {
  background: #0d6efd;
  color: white;
}

.step-indicator .step.completed {
  background: #198754;
  color: white;
}