:root { 
  --bg: #0b0f14; 
  --sidebar: #11161d; 
  --ink: #e6edf3; 
  --brand: #6aa6ff; 
  --muted: #96a0aa;
  --card-bg: #11161d;
  --border: #172334;
  --table-border: #233042;
  --table-header: #111a28;
  --success: #28a745;
  --error: #dc3545;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  min-height: 100vh;
  line-height: 1.6;
}

/* Sidebar */
aside {
  width: 240px;
  background: var(--sidebar);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

aside h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

aside nav a {
  display: block;
  color: var(--ink);
  padding: 8px 0;
  text-decoration: none;
  transition: color 0.2s ease;
}

aside nav a:hover {
  color: var(--brand);
}

aside nav a.active {
  color: var(--brand);
  font-weight: 600;
}

/* Main content */
main {
  flex: 1;
  padding: 32px;
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

h2 {
  margin-top: 18px;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

p, li {
  color: var(--muted);
  margin-bottom: 8px;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Cards */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

th, td {
  padding: 10px;
  border: 1px solid var(--table-border);
  text-align: left;
}

th {
  background: var(--table-header);
  font-weight: 600;
}

td {
  color: var(--muted);
}

td strong {
  color: var(--ink);
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--ink);
}

input, textarea, select {
  width: 100%;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  font-family: inherit;
  transition: border-color 0.2s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--brand);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.btn {
  padding: 12px 24px;
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover {
  background: #5a94e6;
  transform: translateY(-1px);
}

.btn:disabled {
  background: var(--muted);
  cursor: not-allowed;
  transform: none;
}

/* Messages */
.message {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.message.success {
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
}

.message.error {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid var(--error);
  color: var(--error);
}

/* reCAPTCHA styling */
.g-recaptcha {
  margin: 16px 0;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    flex-direction: column;
  }
  
  aside {
    width: 100%;
    padding: 16px;
  }
  
  aside nav {
    display: flex;
    gap: 16px;
    overflow-x: auto;
  }
  
  aside nav a {
    white-space: nowrap;
    padding: 8px 12px;
  }
  
  main {
    padding: 20px;
  }
}