/* ============================================================
   Social login buttons
   ============================================================ */
.btn-light-google {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(17, 24, 39, 0.2);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  background: #fff;
  color: #111827;
  border-radius: 10px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.btn-light-google:hover {
  border-color: rgba(79, 70, 229, 0.45);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn-light-facebook {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(17, 24, 39, 0.2);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  background: #fff;
  color: #111827;
  border-radius: 10px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.btn-light-facebook:hover {
  border-color: rgba(79, 70, 229, 0.45);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* ============================================================
   Fonts
   ============================================================ */
@font-face {
  font-family: 'Inter';
  src: url("../fonts/Inter/Inter-VariableFont_opsz,wght-83aecb7f3f7480ba626d188e25edf01c.ttf") format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url("../fonts/Inter/Inter-Italic-VariableFont_opsz,wght-eac76789ffada26253b1a7c3ccfbf47e.ttf") format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url("../fonts/Playfair_Display/PlayfairDisplay-VariableFont_wght-3f6ebd345fee09c3f31ee6b0c17bf9a5.ttf") format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url("../fonts/Playfair_Display/PlayfairDisplay-Italic-VariableFont_wght-c558074e4db9962a68d3b9dc83690435.ttf") format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ============================================================
   Design system tokens — new palette
   #4F46E5  indigo primary
   #374151  body text (cool gray)
   #FDF8F1  warm off-white background
   #111827  dark titles / strong accents
   ============================================================ */
:root {
  /* Primary — indigo */
  --bs-primary: #4F46E5;
  --bs-primary-rgb: 79, 70, 229;

  /* Secondary — cooler indigo shade used for icons / labels */
  --bs-secondary: #374151;
  --bs-secondary-rgb: 55, 65, 81;

  /* Base text & backgrounds */
  --bs-body-bg: #FDF8F1;
  --bs-body-color: #374151;

  /* Heading color */
  --bs-heading-color: #111827;

  /* Links */
  --bs-link-color: #4F46E5;
  --bs-link-hover-color: #3730a3;

  /* Subtle tints */
  --bs-primary-bg-subtle: rgba(79, 70, 229, 0.08);
  --bs-secondary-bg-subtle: rgba(55, 65, 81, 0.07);

  /* Border radius scale */
  --bs-border-radius:    8px;
  --bs-border-radius-sm: 6px;
  --bs-border-radius-lg: 14px;
  --bs-border-radius-xl: 18px;

  /* Shadow scale */
  --shadow-xs: 0 1px 3px rgba(17, 24, 39, 0.06), 0 1px 2px rgba(17, 24, 39, 0.04);
  --shadow-sm: 0 2px 8px rgba(17, 24, 39, 0.08), 0 0 0 1px rgba(17, 24, 39, 0.05);
  --shadow-md: 0 4px 16px rgba(17, 24, 39, 0.10), 0 0 0 1px rgba(17, 24, 39, 0.05);
  --shadow-lg: 0 12px 32px rgba(17, 24, 39, 0.14), 0 0 0 1px rgba(17, 24, 39, 0.05);
}

/* ============================================================
   Base typography & layout
   ============================================================ */
html, body {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6,
.navbar-brand,
.page-title {
  font-family: 'Playfair Display', 'Inter', serif;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.01em;
}

body,
.btn,
.navbar,
.nav,
.form-control,
.card,
label,
input,
textarea,
select {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Text utilities override */
.text-muted {
  color: #6B7280 !important;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 80ms ease;
}

.btn:active {
  transform: translateY(1px);
}

/* Primary button — indigo filled */
.btn-primary {
  --bs-btn-bg: #4F46E5;
  --bs-btn-border-color: #4F46E5;
  --bs-btn-hover-bg: #4338CA;
  --bs-btn-hover-border-color: #4338CA;
  --bs-btn-active-bg: #3730A3;
  --bs-btn-active-border-color: #3730A3;
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

/* Secondary button — dark gray filled */
.btn-secondary {
  --bs-btn-bg: #374151;
  --bs-btn-border-color: #374151;
  --bs-btn-hover-bg: #1F2937;
  --bs-btn-hover-border-color: #1F2937;
  --bs-btn-active-bg: #111827;
  --bs-btn-active-border-color: #111827;
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
}

/* Outline primary */
.btn-outline-primary {
  --bs-btn-color: #4F46E5;
  --bs-btn-border-color: #4F46E5;
  --bs-btn-hover-bg: #4F46E5;
  --bs-btn-hover-border-color: #4F46E5;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #4338CA;
  --bs-btn-active-border-color: #4338CA;
  --bs-btn-active-color: #fff;
}

/* Outline secondary */
.btn-outline-secondary {
  --bs-btn-color: #374151;
  --bs-btn-border-color: #D1D5DB;
  --bs-btn-hover-bg: #F9FAFB;
  --bs-btn-hover-border-color: #9CA3AF;
  --bs-btn-hover-color: #111827;
  --bs-btn-active-bg: #F3F4F6;
  --bs-btn-active-border-color: #6B7280;
  --bs-btn-active-color: #111827;
}

/* ============================================================
   Form controls
   ============================================================ */
.form-control,
.form-select {
  border-color: #D1D5DB;
  border-radius: 8px;
  background-color: #fff;
  color: #111827;
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-control:focus,
.form-select:focus {
  border-color: #4F46E5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
  outline: none;
}

.form-control::placeholder {
  color: #9CA3AF;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.35rem;
}

.form-check-input {
  border-color: #9CA3AF;
  border-radius: 4px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-check-input:checked {
  background-color: #4F46E5;
  border-color: #4F46E5;
}

.form-check-input:focus {
  border-color: #4F46E5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* ============================================================
   Cards
   ============================================================ */
.card {
  border-radius: 14px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background-color: #fff;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms ease;
}

.card-header {
  background-color: transparent;
  border-bottom: 1px solid rgba(17, 24, 39, 0.07);
  padding: 1rem 1.25rem 0.85rem;
}

.card-body {
  padding: 1.25rem;
}

/* ============================================================
   Badges
   ============================================================ */
.badge {
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  padding: 0.3em 0.65em;
}

/* ============================================================
   Tables
   ============================================================ */
.table {
  color: #374151;
}

.table thead th {
  color: #6B7280;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom-color: rgba(17, 24, 39, 0.1);
}

.table-light {
  --bs-table-bg: #F9FAFB;
  --bs-table-color: #374151;
}

.table > :not(caption) > * > * {
  border-bottom-color: rgba(17, 24, 39, 0.07);
}

/* ============================================================
   Alerts
   ============================================================ */
.alert {
  border-radius: 10px;
  border: none;
  font-size: 0.9rem;
}

.alert-success  { background: #ECFDF5; color: #065F46; }
.alert-warning  { background: #FFFBEB; color: #92400E; }
.alert-danger   { background: #FEF2F2; color: #991B1B; }
.alert-info     { background: rgba(79, 70, 229, 0.07); color: #3730A3; }

/* ============================================================
   Pill / tag helper
   ============================================================ */
.pill-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(79, 70, 229, 0.08);
  color: #4F46E5;
  border: 1px solid rgba(79, 70, 229, 0.18);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ============================================================
   Modals
   ============================================================ */
.modal-modern .modal-content,
.modal .modal-content {
  border-radius: 18px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  background-color: #fff;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.18), 0 2px 8px rgba(17, 24, 39, 0.08);
}

.modal-modern .modal-header,
.modal .modal-header {
  border-bottom: 0;
  padding: 1.5rem 2.25rem 1rem;
}

.modal-modern .modal-body,
.modal .modal-body {
  padding: 0 2.25rem 1.75rem;
}

.modal-modern .modal-footer,
.modal .modal-footer {
  border-top: 0;
  padding: 0 2.25rem 1.75rem;
}

.modal-modern .btn-close,
.modal .btn-close {
  filter: invert(0);
  opacity: .6;
}
.modal-modern .btn-close:hover,
.modal .btn-close:hover { opacity: 1; }

/* Modal entry animation */
.modal-modern.fade .modal-dialog {
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition: transform .28s cubic-bezier(.22,.61,.36,1), opacity .28s ease;
}
.modal-modern.show .modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Backdrop */
.modal-backdrop.show {
  background-color: rgba(17, 24, 39, 0.5);
  backdrop-filter: blur(3px);
}

/* ============================================================
   Horizontal rule
   ============================================================ */
hr {
  border-color: rgba(17, 24, 39, 0.08);
  opacity: 1;
}

/* ============================================================
   Scrollbar (global webkit)
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(17, 24, 39, 0.18); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(17, 24, 39, 0.32); }
