/*!
  Stripe‑Inspired Theme for Bootstrap 5 (Original CSS)
  - Load AFTER Bootstrap.
  - No JavaScript required.
  - Focus: clean typography, strong contrast, subtle elevation, purple accent.
*/

/* Inter font (Stripe uses similar modern sans) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root{
  /* Palette */
  --stripe-primary: #635bff;        /* core accent */
  --stripe-primary-600: #5146ff;
  --stripe-primary-700: #4638ff;
  --stripe-bg: #f6f9fc;             /* page background */
  --stripe-surface: #ffffff;        /* cards/navbars */
  --stripe-text: #0f172a;           /* near black */
  --stripe-muted: #64748b;          /* readable gray */
  --stripe-border: #e5e7eb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(2,6,23,.08);
  --shadow-sm: 0 6px 18px rgba(2,6,23,.06);
}

/* Global */
html, body{
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--stripe-text);
  background: var(--stripe-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Navbar */
.navbar{
  background: var(--stripe-surface) !important;
  border-bottom: 1px solid var(--stripe-border);
  box-shadow: var(--shadow-sm);
}
.navbar .navbar-brand{
  font-weight: 800;
  color: var(--stripe-text);
  letter-spacing: .2px;
}
.navbar .nav-link{
  color: #334155 !important;
  padding: .65rem .9rem;
  border-radius: 10px;
}
.navbar .nav-link:hover{ background: #eef2ff; color: var(--stripe-primary) !important; }
.navbar .nav-link.active{ background: #eef2ff; color: var(--stripe-primary) !important; }
.navbar .navbar-text{ color: var(--stripe-muted); }

/* Buttons */
.btn{
  border-radius: 12px;
  transition: transform .02s ease, box-shadow .2s ease;
  border: 1px solid transparent;
}
.btn:active{ transform: translateY(1px); }


/* Status dropdown: comfy, fixed width inside flex/table cells */
.status-select{
  flex: 0 0 220px !important;   /* fixed basis in flex rows */
  min-width: 220px !important;  /* never collapse */
  height: 40px !important;      /* comfortable height */
  font-size: 16px !important;
  line-height: 1.25 !important;
  padding: .5rem .9rem !important;
}

/* Primary: gradient purple */
.btn-primary{
  color: #fff;
  background: linear-gradient(135deg, #7a6cff, var(--stripe-primary));
  border-color: var(--stripe-primary);
  box-shadow: 0 10px 24px rgba(99,91,255,.25);
}
.btn-primary:hover{
  color:#fff;
  background: linear-gradient(135deg, var(--stripe-primary-600), var(--stripe-primary));
  border-color: var(--stripe-primary-600);
}
.btn-primary:focus{
  box-shadow: 0 0 0 .25rem rgba(99,91,255,.25);
}
.btn-outline-primary{
  color: var(--stripe-primary);
  border-color: var(--stripe-primary);
}
.btn-outline-primary:hover{
  color:#fff; background: var(--stripe-primary); border-color: var(--stripe-primary);
}
.btn-light{
  background:#f8fafc; border-color:#e2e8f0; color:#0f172a;
}

/* Cards & Sections */
.card{
  background: var(--stripe-surface);
  border: 1px solid var(--stripe-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-header{
  background: var(--stripe-surface);
  border-bottom: 1px solid var(--stripe-border);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  font-weight: 600;
  color: var(--stripe-text);
}
.card-footer{
  background: var(--stripe-surface);
  border-top: 1px solid var(--stripe-border);
}

/* Headings */
h1, h2, h3, h4, h5, h6{ color: var(--stripe-text); font-weight: 800; }
.page-title{ font-weight: 800; letter-spacing: .2px; }
.page-subtitle{ color: var(--stripe-muted); }

/* Forms */
.form-control, .form-select{
  background: #fff;
  border-color: var(--stripe-border);
  border-radius: 12px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.form-control:focus, .form-select:focus{
  border-color: var(--stripe-primary);
  box-shadow: 0 0 0 .2rem rgba(99,91,255,.18);
}
.input-group-text{ background: #fff; border-color: var(--stripe-border); border-radius: 10px; }
.form-check-input:checked{ background-color: var(--stripe-primary); border-color: var(--stripe-primary); }

/* Tables */
.table{
  background: var(--stripe-surface);
  border: 1px solid var(--stripe-border);
  border-radius: 12px;
  overflow: hidden;
}
.table>:not(caption)>*>*{ padding: .9rem .95rem; vertical-align: middle; }
.table thead th{
  background: #ffffff;
  color: var(--stripe-text);
  font-weight: 700;
  border-bottom: 1px solid var(--stripe-border);
  position: sticky; top: 0; z-index: 2;
}
.table-hover tbody tr:hover{ background: #f0f4ff; }
.table-striped tbody tr:nth-of-type(odd){ background: #fafbff; }

/* Badges */
.badge{ border-radius: 999px; padding: .45rem .65rem; font-weight: 600; }
.badge-status{ font-size: .78rem; letter-spacing: .2px; }
.badge.bg-success{ background-color: #10b981 !important; }
.badge.bg-warning{ background-color: #f59e0b !important; color: #111827; }
.badge.bg-danger{  background-color: #ef4444 !important; }

/* Utilities */
.rounded-2xl{ border-radius: 20px !important; }
.shadow-stripe{ box-shadow: var(--shadow) !important; }
.text-muted{ color: var(--stripe-muted) !important; }
.bg-soft-primary{ background: #eef2ff; color: var(--stripe-primary); border: 1px solid #e0e7ff; }
.table-compact>:not(caption)>*>*{ padding: .6rem .7rem; }

/* Footer */
.footer{
  background: var(--stripe-surface);
  border-top: 1px solid var(--stripe-border);
  color: var(--stripe-muted);
}

/* Ensure light mode */
@media (prefers-color-scheme: dark){
  :root{ color-scheme: light; }
  html, body{ background: var(--stripe-bg) !important; color: var(--stripe-text) !important; }
}