/* Chastity Games Theme */
:root {
  /* Default: Dark Theme */
  --bg-main: #0e0e0e;
  --bg-header: #111;
  --bg-card: #151515;
  --text-main: #e1e1e1;
  --text-muted: #8b8b8b;
  --text-header: #ffffff;
  --border-color: rgba(255, 255, 255, 0.1);
  --accent-purple: #8a2be2;
  --accent-green: #21c15a;
  --accent-red: #ff6b6b;
}

body.theme-light {
  --bg-main: #f0f2f5;
  --bg-header: #ffffff;
  --bg-card: #ffffff;
  --text-main: #1c1e21;
  --text-muted: #65676b;
  --text-header: #000000;
  --border-color: #ddd;
}

/* Base Styles */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: "Segoe UI", Roboto, Arial, sans-serif; background: var(--bg-main); color: var(--text-main); min-height: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 16px; }
.card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 1.5rem; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
a { color: var(--accent-purple); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.header { background: var(--bg-header); border-bottom: 1px solid var(--border-color); padding: 12px 0; }
.header h1 { color: var(--text-header); }
.header a.btn { border-color: var(--accent-purple); color: var(--text-header); }
.header a.btn:hover { background: rgba(138, 43, 226, 0.25); }

/* Forms & Buttons */
.btn, button.btn { background: transparent; color: var(--text-main); border: 1px solid var(--accent-purple); padding: 8px 16px; text-decoration: none; border-radius: 8px; font-size: 0.95rem; cursor: pointer; transition: background 0.2s ease; }
.btn:hover { background: rgba(138, 43, 226, 0.25); }
input, select, textarea { width: 100%; font: inherit; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--border-color); background: var(--bg-main); color: var(--text-main); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-purple); border-color: var(--accent-purple); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }

/* Tables */
.table-wrap { overflow-x: auto; }
table.wide { width: 100%; border-collapse: collapse; margin-top: 12px; min-width: 600px; }
table.wide th, table.wide td { padding: 12px; border-bottom: 1px solid var(--border-color); text-align: left; }
table.wide thead { background-color: rgba(0,0,0,0.1); }
body.theme-light table.wide thead { background-color: #f8f9fa; }

/* Utility Classes */
.stat { margin: 10px 0; padding: 10px; background: var(--bg-card); border: 1px solid var(--border-color); border-left-width: 4px; }
.ok { color: var(--accent-green); border-left-color: var(--accent-green); }
.err { color: var(--accent-red); border-left-color: var(--accent-red); }
.muted { color: var(--text-muted); }
.inline { display: inline; }

.site-footer {
  margin-top: 24px;
  padding: 12px 16px;
  border-top: 1px solid rgba(0,0,0,0.1);
  font-size: 0.95rem;
  color: inherit;
}
.site-footer .footer-inner {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center; /* change to space-between if you prefer left/right */
}
.site-footer .footer-link {
  text-decoration: none;
}
.site-footer .footer-link:hover,
.site-footer .footer-link:focus {
  text-decoration: underline;
}
.site-footer .footer-sep {
  opacity: 0.6;
}

.site-footer {
  text-align: center;
}

.site-footer .footer-inner {
  max-width: 900px;     /* optional: keeps it tidy */
  margin: 0 auto;       /* centers within the page */
  justify-content: center;
}

.site-footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: inherit;  /* or a solid color if you prefer */
  text-align: center;
  padding: 12px 16px;
  border-top: 1px solid rgba(0,0,0,0.1);
  z-index: 1000;
}


