/* ───────────────────────────
   GLOBAL RESET / BASICS
   ─────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    sans-serif;
  background: #f4f6f9;
  color: #222;
  line-height: 1.45;
}

h1,
h2,
h3 {
  font-weight: 600;
  margin: 0 0 0.75em;
  color: #333;
}

button,
input[type="button"],
input[type="submit"] {
  cursor: pointer;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 15px;
  background: #0066ff;
  color: #fff;
  transition: background 0.15s ease;
}

button:hover:enabled {
  background: #0053d6;
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

a {
  color: #0066ff;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ───────────────────────────
   CONTAINERS & SECTIONS
   ─────────────────────────── */
.wrapper {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
}

section,
.team-block,
#stock-control,
#investment-controls {
  background: #fff;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* headings inside shadow cards */
section h2,
#stock-control h2 {
  margin-top: 0;
  margin-bottom: 16px;
}

/* ───────────────────────────
   ADMIN: TEAM-BLOCK CARDS
   ─────────────────────────── */
.team-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}
.team-block h2 {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}
.team-block label {
  font-weight: 500;
}
.team-block input {
  width: 100%;
}

/* ───────────────────────────
   FORM ELEMENTS (shared)
   ─────────────────────────── */
label {
  display: block;
  margin-bottom: 8px;
}
input[type="text"],
input[type="number"],
input[type="datetime-local"],
input[type="email"],
input[type="password"] {
  padding: 10px 12px;
  width: 100%;
  max-width: 280px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 15px;
}

/* ───────────────────────────
   STATUS MESSAGE / FEEDBACK
   ─────────────────────────── */
#status,
#error,
#market-status {
  margin-top: 12px;
  font-weight: 600;
}

/* positive / negative coloring */
#status:empty,
#error:empty {
  display: none;
}
#status {
  color: #15803d; /* green */
}
#error,
#status.error {
  color: #b91c1c; /* red */
}

/* ───────────────────────────
   STOCK LIST (Admin)
   ─────────────────────────── */
.stock-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
.stock-entry strong {
  font-weight: 600;
}
.stock-entry button {
  background: #dc2626;
}
.stock-entry button:hover {
  background: #b91c1c;
}

/* ───────────────────────────
   USER DASHBOARD: WALLET & BETS
   ─────────────────────────── */
#investment-controls > div {
  background: #fafafa;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
#investment-controls strong {
  flex: 1 1 160px;
}
#investment-controls input {
  max-width: 120px;
  margin-bottom: 0;
}

/* ───────────────────────────
   CHART AREA
   ─────────────────────────── */
#chart-wrapper {
  width: 100%;
  max-width: 800px;
  height: 400px;
  margin: 0 auto 24px;
}
#stockChart {
  width: 100% !important;
  height: 100% !important;
}

/* ───────────────────────────
   LOGIN PAGE (if you still use it)
   ─────────────────────────── */
.login-container {
  max-width: 360px;
  margin: 5vh auto;
  padding: 28px 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
  text-align: center;
}
.login-container h2 {
  margin-top: 0;
}

/* ───────────────────────────
   SMALL UTILITIES
   ─────────────────────────── */
.text-center {
  text-align: center;
}
.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 4px;
}
.mt-2 {
  margin-top: 8px;
}
.mt-3 {
  margin-top: 12px;
}
