/* BookingsPlus Bootstrap Theme (Blue) */
/* Drop-in replacement for stylesheets/bookingsplus-bootstrap.css */

/* ---- Brand tokens ---- */
:root{
  --bp-primary: #2563eb;         /* blue */
  --bp-primary-600: #1d4ed8;
  --bp-primary-700: #1e40af;
  --bp-bg: #f6f7fb;              /* soft gray-blue background */
  --bp-surface: #ffffff;
  --bp-border: rgba(15, 23, 42, 0.10); /* slate-ish */
  --bp-text: #0f172a;            /* slate-900 */
  --bp-muted: #475569;           /* slate-600 */
  --bp-sidebar-width: 280px;
  --bp-radius: 14px;
}

/* ---- Global ---- */
html, body { height: 100%; }
body{
  background: var(--bp-bg);
  color: var(--bp-text);
}

/* Links */
a{ color: var(--bp-primary); text-decoration: none; }
a:hover{ color: var(--bp-primary-600); text-decoration: underline; }

/* ---- App shell ---- */
.bp-app{ min-height: 100vh; }
.bp-content{ min-width: 0; }

/* Sidebar */
.app-sidebar, .bp-sidebar{
  width: var(--bp-sidebar-width);
  background: var(--bp-surface);
  border-right: 1px solid var(--bp-border);
}

.bp-sidebar .brand{
  font-weight: 700;
  letter-spacing: .2px;
}

.bp-sidebar .nav .nav-link{
  color: var(--bp-muted);
  border-radius: 10px;
  padding: .55rem .75rem;
  display: flex;
  gap: .5rem;
  align-items: center;
}

.bp-sidebar .nav .nav-link:hover{
  background: rgba(37, 99, 235, 0.08);
  color: var(--bp-primary-700);
  text-decoration: none;
}

.bp-sidebar .nav .nav-link.active{
  background: rgba(37, 99, 235, 0.12);
  color: var(--bp-primary-700);
  font-weight: 600;
  border: 1px solid rgba(37, 99, 235, 0.18);
}

/* Topbar */
.bp-topbar{
  background: rgba(255,255,255,0.80);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bp-border);
}

/* Cards */
.card{
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.card .card-header{
  background: transparent;
  border-bottom: 1px solid var(--bp-border);
}

/* Buttons (Bootstrap uses --bs-primary; override) */
.btn-primary{
  background-color: var(--bp-primary);
  border-color: var(--bp-primary);
}
.btn-primary:hover{
  background-color: var(--bp-primary-600);
  border-color: var(--bp-primary-600);
}
.btn-outline-primary{
  color: var(--bp-primary);
  border-color: rgba(37, 99, 235, 0.55);
}
.btn-outline-primary:hover{
  background-color: rgba(37, 99, 235, 0.10);
  border-color: rgba(37, 99, 235, 0.75);
  color: var(--bp-primary-700);
}

/* Badges */
.badge.text-bg-primary{
  background-color: var(--bp-primary) !important;
}

/* Forms */
.form-control, .form-select{
  border-radius: 12px;
  border-color: rgba(15, 23, 42, 0.14);
}
.form-control:focus, .form-select:focus{
  border-color: rgba(37, 99, 235, 0.65);
  box-shadow: 0 0 0 .25rem rgba(37, 99, 235, 0.18);
}

/* Tables */
.table{
  color: var(--bp-text);
}
.table thead th{
  color: var(--bp-muted);
  font-weight: 600;
  text-transform: none;
  border-bottom: 1px solid var(--bp-border);
}
.table-hover tbody tr:hover{
  background-color: rgba(37, 99, 235, 0.04);
}

/* Breadcrumbs (smaller, cleaner) */
.breadcrumb{
  --bs-breadcrumb-divider-color: rgba(71, 85, 105, 0.6);
}
.breadcrumb-item + .breadcrumb-item::before{
  opacity: .7;
}

/* Alerts */
.alert{
  border-radius: 14px;
  border: 1px solid var(--bp-border);
}

/* Login page card sizing */
.bp-login-card{
  max-width: 440px;
}

/* Utilities */
.bp-muted{ color: var(--bp-muted); }
.bp-divider{ border-top: 1px solid var(--bp-border); }

/* Make legacy tables behave on small screens */
.table-responsive{
  border-radius: var(--bp-radius);
}
