html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: #fff;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: #1A2C42;
}

/* Navbar */
.navbar-vics {
  background-color: #1A2C42 !important;
}

.navbar-vics .navbar-brand img {
  height: 36px;
}

.navbar-vics .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
}

.navbar-vics .nav-link:hover {
  color: #fff !important;
}

.navbar-vics .nav-link.active {
  color: #FF9F1A !important;
}

.navbar-vics .nav-username {
  color: #FF9F1A !important;
}

.navbar-vics .nav-link-muted {
  color: rgba(255, 255, 255, 0.6) !important;
}

.navbar-vics .nav-link-muted:hover {
  color: rgba(255, 255, 255, 0.85) !important;
}

.navbar-vics .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
}

.navbar-vics .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Tables */
.table thead th {
  background-color: #1A2C42;
  color: #FF9F1A;
  font-weight: 500;
  border-bottom: none;
}

.table > tbody > tr:nth-child(odd) > td,
.table > tbody > tr:nth-child(odd) > th {
  background-color: #fff;
}

.table > tbody > tr:nth-child(even) > td,
.table > tbody > tr:nth-child(even) > th {
  background-color: #FFFBF4;
}

.table > tbody > tr > td,
.table > tbody > tr > th {
  border-bottom: 0.5px solid #eee;
}

/* Buttons */
.btn-primary {
  background-color: #FF9F1A;
  color: #1A2C42;
  font-weight: 500;
  border: none;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #e8900f;
  color: #1A2C42;
}

.btn-primary:active {
  background-color: #d4830e !important;
  color: #1A2C42 !important;
}

.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 #FF9F1A;
}

/* Footer */
.footer-vics {
  background-color: #1A2C42;
  color: rgba(255, 255, 255, 0.6);
}

/* Login page */
.login-body {
  background-color: #1A2C42;
  min-height: 100vh;
}

.login-card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.login-btn {
  background-color: #FF9F1A;
  color: #1A2C42;
  font-weight: 500;
  border: none;
}

.login-btn:hover {
  background-color: #e8900f;
  color: #1A2C42;
}

/* ===== Cafe additions ===================================================== */

/* The brand: the cafe's logo image where the bakery shows its own. Until the VICS_CAFE_… files are in
   wwwroot/images, _BrandLogo falls back to this wordmark (amber on navy, navy on white). */
.brand-word {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1A2C42;
  white-space: nowrap;
}

.login-body .brand-word,
.navbar-vics .brand-word {
  color: #FF9F1A;
}

/* Every text input at 16px: iOS zooms the page on focus below that (the bakery's 14px inputs do). */
input.form-control,
select.form-select,
textarea.form-control {
  font-size: 16px;
}

/* The customer shell and the sign-in pages: phone-first. Every tap target at least 44px tall. */
.cust-body,
.login-body {
  margin-bottom: 0;
}

.cust-body .btn,
.cust-body .nav-link,
.cust-body .form-control,
.login-body .btn,
.login-body .form-control {
  min-height: 44px;
}

.cust-body .nav-link,
.cust-body .cust-navbtn {
  display: flex;
  align-items: center;
}

.cust-navbtn {
  border: 0;
  background: none;
  padding: 0.5rem 1rem;
  text-decoration: none;
}

.login-body a.small {
  display: inline-block;
  padding: 0.6rem 0.25rem;   /* the text links under the form reach 44px with the line height */
}

.footer-vics a {
  color: rgba(255, 255, 255, 0.85);
}

/* ---- The customer menu (Phase 1.7 placeholder): cards, not tables ---- */
.cust-hero {
  background: #fff;
  border-left: 4px solid #FF9F1A;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.cust-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cust-section-title {
  border-bottom: 2px solid #FF9F1A;
  padding-bottom: 0.25rem;
}

.cust-item {
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.cust-item-name { font-weight: 600; color: #1A2C42; }
.cust-item-desc { color: #555; font-size: 0.95em; }
.cust-item-price { font-weight: 600; color: #1A2C42; }
.cust-item-unavailable .cust-item-name,
.cust-item-unavailable .cust-item-price { color: #9a9a9a; }

.cust-body { background-color: #f8f7f3; }
