/* Base layout */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: rgba(20, 20, 40, 0.85); /* unified background */
}

body {
  font-family: "Terminal", monospace;
  color: #2DC26B;
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  background: rgba(20, 20, 40, 0.85); /* match main exactly */
}

/* Sidebar */
.sidebar {
  width: 220px;
  background: linear-gradient(180deg, #111, #222);
  color: #2DC26B;
  padding: 10px;
  box-sizing: border-box;
  min-height: 100vh;
  position: sticky;
  top: 0;
  flex-shrink: 0;
  box-shadow: 2px 0 10px rgba(45, 194, 107, 0.4);
}

.sidebar h2 {
  margin: 0 0 10px;
  text-align: center;
  font-size: 1.1em;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  margin: 8px 0;
}

/* ✅ RESTORED BUTTON STYLING */
.sidebar ul li a {
  color: #2DC26B;
  text-decoration: none;
  font-weight: bold;
  display: block;
  padding: 6px;
  border: 1px solid #2DC26B;
  border-radius: 4px;
  background: rgba(20, 20, 40, 0.85);
  transition: background 0.3s ease, color 0.3s ease;
  font-size: 0.9em;
}

.sidebar ul li a:hover {
  background: linear-gradient(90deg, #3fe07f, #2DC26B);
  color: #000;
}

/* Main content */
.main {
  flex-grow: 1;
  background: rgba(20, 20, 40, 0.85);
  color: #2DC26B;
  padding: 30px;
  box-sizing: border-box;
  min-height: 100vh;

  /* Center horizontally, align to top */
  display: flex;
  flex-direction: column;
  align-items: center;       /* horizontal center */
  justify-content: flex-start; /* stick to top */
}

/* Headings */
h1, h2 {
  color: #2DC26B;
  text-align: center;
  margin: 0 0 15px;
}

/* Tables */
table {
  width: 90%;
  border-collapse: collapse;
  margin-top: 30px;
  background: rgba(20, 20, 40, 0.85);
  border-radius: 8px;
  border: 1px solid #2DC26B;
}

th, td {
  border: 1px solid #2DC26B;
  padding: 10px;
  color: #2DC26B;
  text-align: center;
}

th {
  background: #111;
}

/* Buttons */
button,
.form-button {
  font-family: "Terminal", monospace;
  background: #2DC26B;
  border: 1px solid #2DC26B;
  padding: 8px 14px;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s ease;
}

button:hover,
.form-button:hover {
  background: #1a8c4d;
}

/* System actions */
.system-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.system-actions form {
  margin: 0;
}

/* Login container */
.login-container {
  background: rgba(20, 20, 40, 0.85);
  border: 1px solid #2DC26B;
  border-radius: 8px;
  padding: 20px;
  width: 300px;
  margin-top: 40px;
  text-align: center;
  box-shadow: 0 0 12px rgba(45, 194, 107, 0.4);
}

/* Divider */
.neon-divider {
  border: none;
  height: 1px;
  background: #2DC26B;
  margin: 20px 0;
}

/* Form elements */
.form-label {
  font-weight: bold;
  color: #2DC26B;
}

.form-input {
  background: #000;
  border: 1px solid #2DC26B;
  color: #2DC26B;
  border-radius: 4px;
  padding: 8px;
  width: 100%;
  margin-bottom: 12px;
}

/* Error messages */
.error-message {
  color: #ff4d4d;
  font-weight: bold;
  margin-bottom: 12px;
}
