/* Base */
html {
  font-size: 14px;
  min-height: 100%;
  position: relative;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin-bottom: 60px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8fafc;
  color: #1f2937;
}

/* Navbar */
.navbar-brand {
  letter-spacing: 0.3px;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease-in-out;
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.dropdown-menu {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.dropdown-item {
  border-radius: 0.75rem;
}

/* Cards */
.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12) !important;
}

.rounded-4 {
  border-radius: 1.25rem !important;
}

/* Buttons */
.btn {
  border-radius: 0.8rem;
  font-weight: 600;
}

.btn-dark,
.btn-primary {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.btn-outline-dark:hover,
.btn-outline-secondary:hover {
  transform: translateY(-1px);
}

/* Tables */
.table {
  background-color: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
}

.table thead th {
  background-color: #111827;
  color: #ffffff;
  border-color: #111827;
  vertical-align: middle;
}

.table td,
.table th {
  vertical-align: middle;
}

/* Forms */
.form-control,
.form-select {
  border-radius: 0.85rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #d1d5db;
  box-shadow: none;
}

.form-control:focus,
.form-select:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 0.2rem rgba(249, 115, 22, 0.15);
}

.form-check-input:checked {
  background-color: #f97316;
  border-color: #f97316;
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

/* Alerts */
.alert {
  border: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* Accordion */
.accordion-button {
  font-weight: 600;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background-color: #fff7ed;
  color: #9a3412;
}

/* Footer */
.footer {
  background-color: #ffffff;
}

/* Utilities */
.shadow-soft {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.section-title {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.text-muted {
  color: #6b7280 !important;
}

/* Hero */
.hero-overlay {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(249, 115, 22, 0.85) 100%);
}

/* Details/summary */
details summary {
  list-style: none;
  cursor: pointer;
}

details summary::-webkit-details-marker {
  display: none;
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
  .display-4 {
    font-size: 2.2rem;
  }

  .card-body {
    padding: 1.25rem !important;
  }

  .btn-lg {
    width: 100%;
  }
}