html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

:root {
    --bg: #ffdcb3;
    --surface: #FFF9F5;
    --muted: #2b2b2b;
    --text: #0B1B2B;
    --primary: #FFD166;
    --primary-600: #1e40af;
    --accent: #1E90FF; /* Accent color chosen to complement #ffdcb3 */
    --success: #16a34a;
    --danger: #ef4444;
    --card-shadow: 0 6px 18px rgba(15,23,42,0.06);
    --radius: 10px;
    --transition: 180ms cubic-bezier(.2,.9,.2,1);
    --max-width: 1100px;
    --container-padding: 1.25rem;
}

:root[data-theme="dark"]{
    --bg: #ffdcb3;
    --surface: #FFF9F5;
    --muted: #2b2b2b;
    --text: #0B1B2B;
    --primary: #FFD166;
    --primary-600: #1e40af;
    --accent: #1E90FF; /* Accent color chosen to complement #ffdcb3 */
    --success: #16a34a;
    --danger: #ef4444;
    --card-shadow: 0 6px 18px rgba(15,23,42,0.06);
    --radius: 10px;
    --transition: 180ms cubic-bezier(.2,.9,.2,1);
    --max-width: 1100px;
    --container-padding: 1.25rem;
}
.lilex {
    font-family: "Lilex", monospace;
    font-optical-sizing: auto;
    font-weight: 100;
    font-style: normal;
}
.fancy-title {
    font-family: 'Bangers', 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    letter-spacing: 1px;
    /* Responsive sizing: min 1.8rem, preferred 4vw, max 3.5rem */
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    /* Colorful gradient clipped to text */
    background: linear-gradient(90deg, #ff8a00, #e52e71, #7b2ff7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    display: inline-block;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "Lilex", monospace;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  background:var(--bg);
  color:var(--text);
  line-height:1.45;
  font-size:16px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Container */
.container{
  max-width:var(--max-width);
  margin:0 auto;
  padding:var(--container-padding);
}

/* Header */
.site-header {
    background: transparent;
    background-color: var(--surface);
    padding: 0.75rem var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.brand{
  display:flex;
  align-items:center;
  gap:0.75rem;
  font-weight:600;
  letter-spacing:0.2px;
  font-size:1.05rem;
}
.brand .logo{
  width:36px;height:36px;border-radius:8px;background:linear-gradient(135deg,var(--primary),var(--accent));
  display:inline-block;
  box-shadow:var(--card-shadow);
}

/* Card */
.card{
  background:var(--surface);
  border-radius:var(--radius);
  box-shadow:var(--card-shadow);
  padding:1rem;
  transition:transform var(--transition), box-shadow var(--transition);
}
.card:hover{ transform:translateY(-4px) }

/* Layout utilities */
.row{ display:flex; gap:1rem; flex-wrap:wrap; }
.col{ flex:1 1 0%; min-width:0; }
.col-2{ flex: 0 0 48%; max-width:48%; }
.col-3{ flex: 0 0 32%; max-width:32%; }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:0.5rem;
  padding:0.5rem 0.85rem; border-radius:8px; border:0; cursor:pointer; font-weight:600;
  transition:transform var(--transition), box-shadow var(--transition), background-color var(--transition);
}
.btn:active{ transform:translateY(1px) }
.btn:focus{ outline:3px solid rgba(37,99,235,0.18); outline-offset:2px; }
.btn-primary{ background:var(--primary); color:white; box-shadow:0 6px 12px rgba(37,99,235,0.12); }
.btn-primary:hover{ background:var(--primary-600) }
.btn-ghost{ background:transparent; border:1px solid rgba(15,23,42,0.06); color:var(--text) }
.btn-sm{ padding:0.35rem 0.6rem; font-size:0.9rem }

/* Forms */
input[type="text"], input[type="number"], select {
  width:100%; padding:0.6rem 0.75rem; border-radius:8px; border:1px solid rgba(15,23,42,0.08);
  background:transparent; transition:box-shadow var(--transition), border-color var(--transition); font-size:0.95rem;
}
input:focus, select:focus{
  box-shadow:0 4px 14px rgba(37,99,235,0.09); border-color:var(--primary); outline:none;
}

/* Table */
.table{ width:100%; border-collapse:collapse; background:transparent; overflow:hidden; border-radius:8px; }
.table thead tr{ background:linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0)); position:sticky; top:0; }
.table th, .table td{ padding:0.65rem 0.85rem; text-align:left; font-size:0.95rem; border-bottom:1px solid rgba(15,23,42,0.04); }
.table tr:nth-child(even) td{ background: rgba(15,23,42,0.01) }

/* Sticky footer layout: make body a column flex container so <main> expands */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Let the main content area grow to fill available space */
main[role="main"] {
  flex: 1 0 auto;
}

/* Ensure footer sits at the bottom when content is short */
footer.footer {
  margin-top: auto;
}

/* Badge */
.badge{ display:inline-block; padding:0.25rem 0.5rem; border-radius:999px; font-weight:700; font-size:0.85rem }
.badge-primary{ background:var(--primary); color:#fff }

/* Helpers */
.muted{ color:var(--muted); font-size:0.92rem }
.small{ font-size:0.88rem }
.flex{ display:flex; align-items:center }

/* Responsive */
@media (max-width:900px){
  .col-2, .col-3{ flex-basis:100%; max-width:100% }
  .site-header{ padding:0.5rem 0.75rem }
  body{ font-size:15px }
}

@media (prefers-color-scheme:dark){
  :root{ color-scheme:dark }
}