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;
}

/* ========== MODERN FORM DESIGN ========== */

/* Form page container - gradient background */
.form-page-container {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 400px;
  padding: 2rem 0;
  margin: 0 -12px;
  border-radius: 16px;
}

/* Modern form card */
.form-modern-card {
  background: white;
  border-radius: 20px;
  padding: 2rem 2.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
}

/* Form labels */
.form-label, .control-label {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

/* Form controls - inputs, textareas */
.form-control {
  border-radius: 12px;
  border: 2px solid #e9ecef;
  padding: 0.65rem 1rem;
  transition: all 0.25s ease;
  font-size: 0.95rem;
}

.form-control:hover {
  border-color: #dee2e6;
}

.form-control:focus {
  border-color: #4A90E2;
  box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.15);
  outline: none;
}

.form-control::placeholder {
  color: #adb5bd;
}

/* Form select */
.form-select, select.form-control {
  border-radius: 12px;
  border: 2px solid #e9ecef;
  padding: 0.65rem 2.5rem 0.65rem 1rem;
  transition: all 0.25s ease;
  font-size: 0.95rem;
}

.form-select:focus, select.form-control:focus {
  border-color: #4A90E2;
  box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.15);
  outline: none;
}

/* Textarea */
textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

/* Form check */
.form-check-input {
  width: 1.25em;
  height: 1.25em;
  margin-top: 0.15em;
  border: 2px solid #dee2e6;
  border-radius: 6px;
}

.form-check-input:checked {
  background-color: #4A90E2;
  border-color: #4A90E2;
}

.form-check-label {
  font-weight: 500;
  color: #495057;
}

/* Cards - modern styling */
.card {
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.card-header {
  font-weight: 600;
  color: #2c3e50;
  background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px 16px 0 0;
  padding: 1rem 1.5rem;
}

/* Buttons - modern styling */
.btn {
  border-radius: 12px;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
  border: none;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #357ABD 0%, #4A90E2 100%);
  box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
  border: none;
  color: white;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #5a6268 0%, #6c757d 100%);
  color: white;
}

.btn-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border: none;
}

.btn-danger {
  border: none;
}

/* Form groups spacing */
.form-group {
  margin-bottom: 1.25rem;
}

/* Breadcrumb in form pages */
.breadcrumb {
  background: transparent;
  padding: 0;
}

.breadcrumb-item a {
  color: #4A90E2;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}