:root {
  --bg: #0f0f0f;
  --panel: #1a1a1a;
  --muted: #bfbfbf;
  --accent: #d4a85b;
  --radius: 10px;
  --shadow: 0 6px 14px rgba(0, 0, 0, 0.6);
  --container-width: 1100px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: linear-gradient(180deg, #0b0b0b, #121212);
  color: var(--muted);
  display: flex;
  justify-content: center;
  padding: 30px 20px;
}

.container {
  width: var(--container-width);
  max-width: 100%;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.2));
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.brand h1 {
  margin: 0;
  font-size: 18px;
  color: #ffdca0;
}

.brand p {
  margin: 0;
  font-size: 12px;
  color: #bda678;
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 6px;
}

.nav a:hover {
  background: #111;
  border-radius: 6px;
  color: #fff;
}

.hero {
  background-image: url('assets/banner.jpg');
  background-size: cover;
  background-position: center;
  height: 110px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 18px;
  color: #fff;
  margin-bottom: 18px;
}

.hero h2 {
  margin: 0;
  font-size: 34px;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
  font-weight: 700;
}

.hero p {
  margin: 6px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.columns {
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  gap: 18px;
}

.card {
  background: var(--panel);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
  color: #fff;
}

.form-group {
  margin-bottom: 12px;
}

.input,
.btn,
.textarea {
  width: 100%;
  padding: 9px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  background: #0f0f0f;
  color: var(--muted);
}

.btn {
  background: var(--accent);
  border: none;
  color: #111;
  font-weight: 700;
  padding: 9px 12px;
  width: auto;
  cursor: pointer;
}

.small-muted {
  font-size: 12px;
  color: #9a9a9a;
}

.footer {
  margin-top: 22px;
  text-align: center;
  color: #7c7c7c;
  font-size: 13px;
}

@media (max-width: 900px) {
  .columns {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero {
    height: 140px;
  }

  .nav {
    display: none;
  }
}

/* New table styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th,
td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #333;
  color: white;
}

td {
  background-color: #222;
  color: #bfbfbf;
}

tr:hover {
  background-color: #444;
}



/* ===== ADDED: Global Dark Mode Override (appended by assistant) ===== */
body, .container, .card, .panel, .box, .content, input, textarea, select {
    background-color: #1a1a1a !important;
    color: #e6e6e6 !important;
    border-color: #333 !important;
}

/* White panels converted to dark */
.white-bg, .bg-white, .panel-body, .panel-default, .card-body, .panel, .well {
    background-color: #1f1f1f !important;
    color: #ddd !important;
}

/* Input fields in dark mode */
input, textarea, select, .form-control {
    background-color: #262626 !important;
    color: #f1f1f1 !important;
    border-color: #444 !important;
}

/* Tables */
table {
    background-color: #1f1f1f !important;
}

table tr, table td, table th {
    background-color: #262626 !important;
    color: #ddd !important;
}

/* Utility: light borders for cards/panels */
.panel, .card, .box {
    box-shadow: none !important;
    border: 1px solid #2b2b2b !important;
}

/* Links */
a { color: #d6a35e !important; }
a:hover { color: #f0cfa0 !important; }

/* Buttons */
.btn {
    background-color: #3a3a3a !important;
    color: #eee !important;
    border-color: #444 !important;
}

/* Ensure inputs' placeholder text is visible */
::placeholder { color: #bdbdbd !important; }

/* End of assistant-inserted dark mode CSS */
