/* httpdocs/style.css */
:root {
  --primary:       #9146ff;
  --dark:          #111;
  --light:         #fff;
  --bg-light:      #f5f5f5;
  --font:          'Poppins', sans-serif;
  --header-height: 4rem;    /* height of sticky header */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  line-height: 1.6;
  color: #333;
  background: var(--bg-light);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ========= Public-Site Navbar ========= */
.site-header {
  background: var(--dark);
  color: var(--light);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  padding: 0 0.5rem;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--light);
  text-decoration: none;
}
.nav-list {
  list-style: none;
  display: flex;
}
.nav-list li + li {
  margin-left: 1.5rem;
}
.nav-list a {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-bottom .2s;
}
.nav-list a:hover {
  color: var(--primary);
}
.nav-list a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ========= Admin-Site Navbar (in /cp) ========= */
.site-header.admin-header {
  background: var(--dark);
  color: var(--light);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
  height: auto;
}
.site-header.admin-header .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0.5rem;
}
.sidebar-brand {
  margin-bottom: 2rem;
}
.sidebar-brand .logo {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--light);
  text-decoration: none;
}
.site-header.admin-header .nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
}
.site-header.admin-header .nav-list li + li {
  margin-top: 1rem;
  margin-left: 0;
}
.site-header.admin-header .nav-list a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  border-radius: 4px;
  transition: background .2s, color .2s;
}
.site-header.admin-header .nav-list a:hover,
.site-header.admin-header .nav-list a.active {
  background: var(--primary);
  color: var(--dark);
}

/* ========= Hero ========= */
.hero {
  background: var(--primary);
  color: var(--light);
  text-align: center;
  padding: 6rem 0;
}
.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: 1.1rem;
  margin: 0 auto 2rem;
  max-width: 600px;
}

/* ========= Buttons ========= */
.btn {
  background: var(--light);
  color: var(--primary);
  padding: .75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
}
.btn:hover {
  background: #e0e0e0;
}

/* ========= Sections ========= */
.section-light {
  padding: 4rem 0;
  background: var(--bg-light);
}
.section-dark {
  padding: 4rem 0;
  background: var(--dark);
  color: var(--light);
}
.section-dark a {
  color: var(--primary);
}
.section-packages {
  padding: 4rem 0;
  background: #f4f4f4;
  color: #333;
}

/* ========= Grid & Cards ========= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.card {
  background: var(--light);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}
.card h3 {
  margin-bottom: .75rem;
}
.card p {
  color: #666;
}
.price {
  font-size: 1.5rem;
  margin-top: .5rem;
  color: var(--primary);
}

/* ========= Login / Reset Boxes ========= */
.login-box {
  max-width: 400px;
  margin: 6rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.login-box h2 {
  text-align: center;
  margin-bottom: 1rem;
}
.login-box label {
  display: block;
  margin: 1rem 0 .5rem;
  font-weight: 500;
}
.login-box input {
  width: 100%;
  padding: .75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.login-box button {
  margin-top: 1.5rem;
  width: 100%;
  padding: .75rem;
  background: var(--primary);
  color: var(--light);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}
.login-box .links {
  margin-top: 1rem;
  text-align: center;
}
.login-box .links a {
  color: var(--primary);
  text-decoration: none;
}
.error {
  color: #c00;
  text-align: center;
  margin-top: 1rem;
}

/* ========= Footer ========= */
.site-footer {
  background: var(--dark);
  color: var(--light);
  text-align: center;
  padding: 2rem 0;
}

/* ========= Modal ========= */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
}
.hidden {
  display: none;
}
.modal-content {
  position: relative;
  background: var(--light);
  padding: 2rem;
  border-radius: 8px;
  width: 90%; max-width: 500px;
  max-height: 90%; overflow-y: auto;
}
.close {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}
.modal-content form label {
  display: block; margin: 1rem 0 .5rem; font-weight: 500;
}
.modal-content form input,
.modal-content form textarea {
  width: 100%;
  padding: .5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--font);
  resize: vertical;
}
.modal-content form textarea {
  height: 300px;
}
.modal-content form button {
  margin-top: 1rem;
}

/* ========= Bingo ========= */
#game-container {
  text-align: center;
  font-family: Arial, sans-serif;
}
.multiplier-box {
  font-size: 24px;
  margin-bottom: 10px;
}
.called-numbers-box {
  margin: 10px auto;
}
.ball {
  display: inline-block;
  padding: 10px;
  border-radius: 50%;
  background: #ccc;
  margin: 2px;
}
.last-called {
  background: #f00;
  color: #fff;
}
.bingo-cell {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border: 1px solid #333;
  margin: 1px;
}
.marked {
  background-color: red;
  color: white;
}

/* ========= Admin Sidebar & Main (legacy) ========= */
.admin-container {
  display: flex;
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
}
.admin-sidebar {
  width: 240px;
  background: var(--dark);
  color: var(--light);
  padding: 2rem 1rem;
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
}
.admin-sidebar h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}
.admin-sidebar ul {
  list-style: none;
  padding: 0;
}
.admin-sidebar li + li {
  margin-top: 1rem;
}
.admin-sidebar a {
  display: block;
  padding: .5rem 1rem;
  color: var(--light);
  text-decoration: none;
  border-radius: 4px;
  transition: background .2s;
}
.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: var(--primary);
  color: var(--dark);
}
.admin-main {
  flex: 1;
  padding: 2rem;
  background: var(--bg-light);
}
