/*
 * The Falcon Comb — brand overrides on the Sneat theme.
 * Loaded last, after core.css and theme-default.css, so these win.
 * The deck's colours: red and charcoal.
 */

:root {
  --fc-red:       #C8102E;
  --fc-red-dark:  #A10D25;
  --fc-red-soft:  rgba(200, 16, 46, 0.10);
  --fc-charcoal:  #2E3338;
}

/* Buttons ---------------------------------------------------------------- */
.btn-primary,
.btn-primary:disabled,
.btn-primary.disabled {
  background-color: var(--fc-red) !important;
  border-color: var(--fc-red) !important;
  box-shadow: none !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
  background-color: var(--fc-red-dark) !important;
  border-color: var(--fc-red-dark) !important;
  box-shadow: none !important;
}

.btn-outline-primary {
  color: var(--fc-red) !important;
  border-color: var(--fc-red) !important;
}

.btn-outline-primary:hover {
  background-color: var(--fc-red) !important;
  color: #fff !important;
}

/* Text, links and fills --------------------------------------------------- */
a,
.text-primary,
.app-brand-text {
  color: var(--fc-red);
}

a:hover {
  color: var(--fc-red-dark);
}

.text-primary { color: var(--fc-red) !important; }
.bg-primary   { background-color: var(--fc-red) !important; }

.bg-label-primary {
  background-color: var(--fc-red-soft) !important;
  color: var(--fc-red) !important;
}

/* Forms ------------------------------------------------------------------- */
.form-control:focus,
.form-select:focus,
.input-group-merge:focus-within {
  border-color: var(--fc-red) !important;
  box-shadow: 0 0 0 0.1rem rgba(200, 16, 46, 0.22) !important;
}

.form-check-input:checked {
  background-color: var(--fc-red) !important;
  border-color: var(--fc-red) !important;
}

/* Sidebar ----------------------------------------------------------------- */
.menu-vertical .menu-item.active > .menu-link:not(.menu-toggle) {
  background: var(--fc-red) !important;
  color: #fff !important;
  box-shadow: 0 2px 6px 0 rgba(200, 16, 46, 0.4);
}

.menu-vertical .menu-item.active > .menu-link:not(.menu-toggle) .menu-icon {
  color: #fff !important;
}

.app-brand-text {
  letter-spacing: 0.4px;
}

/* The placeholder pages that are not built yet --------------------------- */
.fc-placeholder {
  border: 1px dashed rgba(46, 51, 56, 0.25);
  border-radius: 0.5rem;
  padding: 3rem 1.5rem;
  text-align: center;
}

/* Sneat lower-cases the brand text; the name is a proper noun. */
.app-brand-text {
  text-transform: none !important;
}

/* "Falcon Comb" is wider than "Sneat": keep it clear of the collapse chevron. */
.layout-menu .app-brand-text {
  font-size: 1.15rem;
}

/* Pill navs (the Reference Data tabs) — Sneat's purple leaks through here. */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: var(--fc-red) !important;
  color: #fff !important;
  box-shadow: 0 2px 6px 0 rgba(200, 16, 46, 0.3);
}

.nav-pills .nav-link {
  color: var(--fc-charcoal);
}

.nav-pills .nav-link:hover:not(.active) {
  background-color: var(--fc-red-soft);
  color: var(--fc-red);
}

/* DataTables controls that pick up the theme primary */
.page-item.active .page-link,
.page-link.active {
  background-color: var(--fc-red) !important;
  border-color: var(--fc-red) !important;
}
