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;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ------------------------------------------------------------------ DebrisCare look
   Dark blue bar with orange accents (FDOT), a light gray page, and content on white cards with
   a soft shadow. Cards inside cards (and panels inside the tab area) turn light gray instead, so
   sections alternate white/gray. */
:root {
  --dc-navy: #0b2c55;
  --dc-navy-dark: #081f3d;
  --dc-orange: #f47b20;
  --dc-page: #eef1f5;
  --dc-panel: #f7f8fa;
  --dc-shadow: 0 1px 3px rgba(16, 24, 40, 0.10), 0 1px 2px rgba(16, 24, 40, 0.06);
}

body {
  background-color: var(--dc-page);
}

/* Navbar */
.dc-navbar {
  background-color: var(--dc-navy);
  border-bottom: 3px solid var(--dc-orange);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.dc-logo {
  height: 34px;
  width: auto;
}

.dc-brand-divider {
  width: 1px;
  height: 28px;
  background-color: rgba(255, 255, 255, 0.35);
  margin: 0 0.75rem;
}

.dc-wordmark {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: #fff;
}

.dc-wordmark span {
  color: var(--dc-orange);
}

.dc-navbar .dc-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
  border-bottom: 3px solid transparent;
}

.dc-navbar .dc-nav .nav-link:hover,
.dc-navbar .dc-nav .nav-link:focus,
.dc-navbar .dc-nav .nav-link.show {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
}

.dc-navbar .dc-nav .nav-link.active {
  color: #fff;
  border-bottom-color: var(--dc-orange);
}

@media (min-width: 768px) {
  .dc-navbar .dc-nav .nav-link {
    border-radius: 0.25rem 0.25rem 0 0;
  }
}

/* Cards: white with depth; nested ones are flat gray panels. */
.card {
  border: 0;
  box-shadow: var(--dc-shadow);
}

.card .card,
.tab-content .card {
  background-color: var(--dc-panel);
  border: 1px solid var(--bs-border-color-translucent);
  box-shadow: none;
}

.card-header {
  background-color: var(--dc-panel);
}

.card-footer {
  background-color: var(--dc-panel);
}

/* The request page's tab area sits on the gray page like a card. */
.tab-content.dc-tab-body {
  background-color: #fff;
  box-shadow: var(--dc-shadow);
}

.nav-tabs .nav-link.active {
  background-color: #fff;
}

/* Tables inside cards: no gap under the last row. */
.card > .table-responsive > .table,
.card > .table {
  margin-bottom: 0;
}

/* ------------------------------------------------------------------ timeline
   Date/time on the left, the event icon on a connecting line, the details on the right. */
.dc-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dc-timeline-item {
  display: flex;
  gap: 0.75rem;
}

.dc-timeline-when {
  flex: 0 0 4.75rem;
  text-align: right;
  font-size: 0.8rem;
  color: var(--bs-secondary-color);
  line-height: 1.25;
  padding-top: 0.2rem;
}

.dc-timeline-marker {
  flex: 0 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dc-timeline-marker .badge {
  position: relative;
  z-index: 1;
}

/* The connecting line runs from under this icon down to the next one. */
.dc-timeline-item:not(:last-child) .dc-timeline-marker::after {
  content: "";
  flex: 1 1 auto;
  width: 2px;
  background-color: var(--bs-border-color);
  margin-top: 0.25rem;
}

.dc-timeline-body {
  flex: 1 1 auto;
  min-width: 0;
  padding-bottom: 1.25rem;
}

@media (max-width: 575.98px) {
  .dc-timeline-when {
    flex-basis: 3.75rem;
  }
}

/* Account menu: room for "FDOT Project Manager - Alachua" on one line. */
.dc-nav .dropdown-menu {
  min-width: 16rem;
}

/* ------------------------------------------------------------------ login page
   Photo collage (wwwroot/images/login-background.jpg, pre-blurred) under a navy overlay, so it
   reads as decoration. The overlay is here rather than in the image: change the alpha to taste. */
body.dc-login {
  background-color: var(--dc-navy-dark);
  background-image:
    linear-gradient(rgba(8, 31, 61, 0.82), rgba(8, 31, 61, 0.82)),
    url("../images/login-background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
}

body.dc-login main {
  padding-top: 8vh;
}

body.dc-login h1 {
  color: #fff;
}

body.dc-login #account {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

body.dc-login .footer {
  color: rgba(255, 255, 255, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* The stock Identity pages (Forgot/Reset Password) on the photo background: light headings and
   text, the form on a white card like the login box, centred. */
body.dc-login main h2,
body.dc-login main > p,
body.dc-login main > div > p {
  color: rgba(255, 255, 255, 0.9);
}

body.dc-login main hr {
  border-color: rgba(255, 255, 255, 0.4);
}

body.dc-login main form:not(.card) {
  background-color: #fff;
  border-radius: var(--bs-border-radius);
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Links on the photo itself (not inside the white form card), e.g. "click here to log in". */
body.dc-login main a:not(form a) {
  color: #fff;
}

/* Create request: the caller history panel stays in view beside the form on a desktop. */
.dc-caller-panel {
  top: 1rem;
  z-index: 1;
}
