/* ===============================================================
   RYZY TIPPING - LIME / GREEN / BLACK SPORTS THEME
   =============================================================== */

/* COLOURS */
:root {
  --bg: #0A0A0A;
  --bg-card: #111111;
  --bg-card-light: #161616;

  --lime: #C6FF00;
  --lime-light: #D4FF33;
  --lime-dark: #A9E300;

  --green: #00C853;
  --green-dark: #009624;

  --text-main: #FFFFFF;
  --text-secondary: #C7C7C7;

  --radius: 14px;
  --shadow-1: 0 4px 14px rgba(0,0,0,0.6);
  --shadow-2: 0 0 20px rgba(198,255,0,0.3);
}

/* GLOBAL */
body {
  background: var(--bg);
  color: var(--text-main);
  font-family: "Inter", "Roboto", sans-serif;
  margin: 0;
}

/* NAVBAR */
.navbar {
  background: #0F0F0F;
  border-bottom: 1px solid #222;
}

.navbar-brand {
  font-weight: 700;
  color: var(--lime);
}

/* BUTTONS */
.btn-primary {
  background: linear-gradient(135deg, var(--lime), var(--green));
  border: none;
  color: #000;
  font-weight: 700;
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-outline-primary {
  border: 2px solid var(--lime);
  color: var(--lime);
  border-radius: var(--radius);
}

.btn-outline-primary:hover {
  background: var(--lime);
  color: #000;
}

/* CARDS */
.card, .comp-card, .match-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid #222;
  box-shadow: var(--shadow-1);
  margin-bottom: 20px;
}

.card:hover {
  box-shadow: 0 0 20px rgba(198,255,0,0.2);
}

/* FAB */
.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--lime);
  color: #000;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-2);
}

/* PAGE TITLES */
.page-header h2 {
  font-weight: 800;
  color: var(--lime);
}

/* TEXT */
.text-secondary {
  color: var(--text-secondary) !important;
}

/* MATCH CARD STATUS */
.lock-chip {
  color: #000;
  background: var(--lime);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* TABLES */
.table {
  color: var(--text-main);
}

.table thead {
  background: #131313;
  border-bottom: 2px solid var(--lime);
}

.table tbody tr:hover {
  background: #1A1A1A;
}


/* ============================================================
   ADMIN DASHBOARD — THEME EXTENSIONS
   Works with your existing neon lime / black design
   ============================================================ */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Sidebar overrides */
.sidebar {
  background: #0a0a0a;
  box-shadow: inset -1px 0 0 #222;
}

.sidebar a {
  color: #bbb;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.sidebar a.active,
.sidebar a:hover {
  background: #111;
  color: #fff;
  border-left: 4px solid var(--lime);
  padding-left: 16px;
}

/* Headings theme */
.section-title {
  color: var(--lime);
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* Admin cards */
.admin-card {
  background: #0e0e0e;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 16px;
  transition: 0.2s ease;
}

.admin-card:hover {
  border-color: var(--green);
  box-shadow: 0 0 12px rgba(170,255,80,0.25);
}

/* Data tables used across modules */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
}

.admin-table th,
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #222;
}

.admin-table th {
  color: var(--lime);
  font-weight: 700;
  background: #111;
}

.admin-table tr:hover {
  background: rgba(255,255,255,0.04);
}

/* Buttons */
.btn-lime {
  background: linear-gradient(90deg, var(--lime), var(--green));
  border: none;
  color: #000;
  font-weight: 800;
  letter-spacing: 0.5px;
  transition: 0.2s;
}

.btn-lime:hover {
  box-shadow: 0 0 15px rgba(190,255,0,0.5);
  transform: translateY(-2px);
}

/* Inputs */
.admin-card input,
.admin-card select {
  background: #111;
  border: 1px solid #333;
  color: #eee;
}

.admin-card input:focus,
.admin-card select:focus {
  border-color: var(--lime);
  box-shadow: 0 0 6px rgba(200,255,0,0.4);
}

/* Debug panel */
#debugOutput {
  max-height: 300px;
  overflow-y: auto;
  color: var(--lime);
  font-size: 0.9rem;
}

/* Match winner highlight */
.winner-selected {
  background: linear-gradient(90deg, var(--lime), var(--green));
  color: #000 !important;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 700;
}

/* Modals */
.modal-content {
  background: #0f0f0f !important;
  border: 1px solid #222 !important;
}

.modal-header {
  border-bottom: 1px solid #222 !important;
}

.modal-title {
  color: var(--lime);
  font-weight: 800;
}

/* Mobile layout improvements */
@media (max-width: 900px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  .admin-wrapper {
    flex-direction: column;
  }
}
