/*
 * 100 Business Center visual layer (LibreBooking 6.0.0).
 * Loaded last through css.extension.file. Keep presentation here;
 * structural header/login edits live in Apply-Customization.ps1.
 */

:root,
[data-bs-theme='default'] {
  --primary: #0867d1;
  --primary-hover: #0754ad;
  --primary-disabled: #8bb9e7;
  --text-color-btn: #fff;
  --bc-blue: #0867d1;
  --bc-cyan: #00aee0;
  --bc-teal: #009b91;
  --bc-green: #35c970;
  --bc-ink: #153047;
  --bc-muted: #587083;
  --bc-line: #dbe8ef;
  --bc-surface: #fff;
  --bc-radius: 16px;
  --bc-shadow: 0 14px 42px rgb(18 73 106 / 9%);
  --bs-primary-rgb: 8, 103, 209;
  --bs-link-color: var(--bc-blue);
  --bs-link-hover-color: var(--primary-hover);
  --bs-body-color: var(--bc-ink);
}

body[data-bs-theme='default'] {
  color: var(--bc-ink);
  background:
    radial-gradient(circle at 0 0, rgb(0 174 224 / 11%), transparent 30rem),
    radial-gradient(circle at 100% 12rem, rgb(53 201 112 / 8%), transparent 27rem),
    #f4f8fb;
  font-size: 15px;
  line-height: 1.5;
}

/* Header: one brand, no graphic mark or duplicate company title. */
.bc-brandbar {
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 12px clamp(16px, 3.5vw, 48px);
  background: var(--bc-surface);
  border-bottom: 1px solid var(--bc-line);
}

.bc-brandbar__name {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--bc-ink);
  font-size: clamp(1.24rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
  text-decoration: none;
}

.bc-brandbar__name::before {
  content: '';
  flex: none;
  width: 7px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--bc-cyan), var(--bc-blue) 50%, var(--bc-teal));
}

.bc-brandbar__name:hover,
.bc-brandbar__name:focus-visible {
  color: var(--primary-hover);
}

nav.navbar {
  z-index: 1020;
  padding-inline: clamp(10px, 2.5vw, 38px);
  background: rgb(255 255 255 / 94%) !important;
  border-bottom: 1px solid var(--bc-line);
  box-shadow: 0 7px 22px rgb(17 67 99 / 7%) !important;
  backdrop-filter: blur(14px);
}

nav.navbar .nav-link {
  border-radius: 9px;
  color: var(--bc-ink) !important;
  font-weight: 600;
  padding: 9px 13px !important;
  transition: color 150ms ease, background-color 150ms ease;
}

nav.navbar .nav-link:hover,
nav.navbar .nav-link:focus-visible,
nav.navbar .nav-link.show {
  color: var(--primary-hover) !important;
  background: #eaf5fb;
}

.dropdown-menu {
  padding: 7px;
  border: 1px solid var(--bc-line);
  border-radius: 12px;
  box-shadow: var(--bc-shadow);
  font-size: 0.9rem;
}

.dropdown-item {
  border-radius: 7px;
  padding: 8px 11px;
}

/* Quiet, consistent surfaces across login, dashboard, schedules and forms. */
.card,
.modal-content {
  background: var(--bc-surface);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius);
}

.card.shadow,
.card.shadow-sm,
.modal-content {
  box-shadow: var(--bc-shadow) !important;
}

.card-header,
.card-footer,
.modal-header,
.modal-footer {
  background: #f8fbfd;
  border-color: var(--bc-line);
}

.card-header:first-child,
.modal-header {
  border-radius: var(--bc-radius) var(--bc-radius) 0 0;
}

.card-footer:last-child,
.modal-footer {
  border-radius: 0 0 var(--bc-radius) var(--bc-radius);
}

.form-control,
.form-select,
.input-group-text {
  border-color: #cddce5;
  border-radius: 9px;
}

.form-control,
.form-select {
  min-height: 38px;
  background-color: #fff;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.btn:focus-visible,
a:focus-visible {
  border-color: var(--bc-blue);
  box-shadow: 0 0 0 3px rgb(8 103 209 / 15%);
  outline: none;
}

.input-group > .input-group-text:first-child {
  border-radius: 9px 0 0 9px;
  background: #f1f7fa;
  color: var(--bc-muted);
}

.input-group > .form-control:last-child {
  border-radius: 0 9px 9px 0;
}

.btn {
  border-radius: 9px;
  font-weight: 600;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(110deg, var(--bc-blue), #087cba);
  border-color: var(--bc-blue);
  box-shadow: 0 6px 14px rgb(8 103 209 / 16%);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: #fff;
  background: linear-gradient(110deg, var(--primary-hover), #076795);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus-visible {
  color: #fff;
}

.badge.bg-primary,
.page-link.active,
.active > .page-link,
.bg-primary {
  background: var(--bc-blue) !important;
}

.alert {
  border-radius: 11px;
}

/* A focused login panel with no duplicated brand mark. */
#page-login > .col-md-6 {
  width: min(100% - 32px, 460px);
  margin-top: clamp(36px, 7vh, 84px) !important;
}

#page-login .card {
  overflow: hidden;
  box-shadow: 0 20px 60px rgb(18 73 106 / 13%) !important;
}

#page-login .card-body {
  margin-inline: 0 !important;
  padding: clamp(24px, 5vw, 42px);
}

.bc-login-heading {
  margin-bottom: 26px;
}

.bc-login-heading h1 {
  margin: 0;
  color: var(--bc-ink);
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

#page-login .input-group {
  margin-bottom: 14px !important;
}

#page-login .input-group .form-control,
#page-login .input-group .input-group-text {
  min-height: 46px;
}

#page-login button[type='submit'] {
  min-height: 45px;
}

#page-dashboard,
#page-schedule,
#page-reservation {
  margin-inline: auto;
  max-width: 1500px;
}

/* Calendar: emphasize the one shared room and make empty slots discoverable. */
#page-schedule {
  padding: clamp(12px, 2vw, 28px);
}

#page-schedule > .row:first-of-type {
  align-items: center;
  margin-bottom: 14px;
  padding: 16px 12px;
  background: var(--bc-surface);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius);
  box-shadow: 0 7px 20px rgb(18 73 106 / 6%);
}

#schedule-actions .schedule-style {
  padding: 5px;
  border-radius: 8px;
}

#schedule-actions .schedule-style:hover,
#schedule-actions .schedule-style:focus-visible,
#schedule-actions .schedule-style.active {
  background: #e9f5fb;
}

.schedule-dates .change-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  border-radius: 8px;
}

.schedule-dates .change-date:hover,
.schedule-dates .change-date:focus-visible {
  background: #e9f5fb;
}

table.reservations td {
  border-color: var(--bc-line);
}

table.reservations td.resourcename,
table.reservations td.reslabel {
  background: #eef6fa;
  color: var(--bc-ink);
}

table.reservations td.resourcename a {
  color: var(--primary-hover);
  font-weight: 700;
}

table.reservations td.reservable:hover,
table.reservations div.reservable:hover {
  background: #e4f7f1;
  box-shadow: inset 0 0 0 2px var(--bc-teal);
  cursor: pointer;
}

.table {
  --bs-table-border-color: var(--bc-line);
}

.table thead th {
  background: #eef6fa;
  color: #345467;
  font-weight: 700;
}

@media (max-width: 767px) {
  .bc-brandbar { min-height: 64px; }
  nav.navbar { backdrop-filter: none; }
  nav.navbar .nav-link { padding-inline: 10px !important; }
  #page-login > .col-md-6 { margin-top: 28px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  nav.navbar .nav-link { transition: none; }
  .btn-primary:hover { transform: none; }
}
