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

/* ========== BASE LAYOUT ========== */
html, body {
  width: 100%;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', Roboto, sans-serif;
  background-color: #1c1c1e;
  color: #f5f5f5;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* ========== MAIN CONTAINER ========== */
.container, .dashboard-container {
  width: 100%;
  max-width: 420px;
  margin: 24px auto;
  padding: 24px 16px;
  background-color: #2c2c2e;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-align: center;
}

/* ========== HEADINGS ========== */
h2, h3 {
  color: #ffcc00;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* ========== FORM ELEMENTS ========== */
form {
  width: 100%;
}

input, select, textarea {
  width: 100%;
  padding: 14px 16px;
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid #3a3a3c;
  background-color: #1c1c1e;
  color: #ffffff;
  font-size: 15px;
  transition: 0.3s;
}

input:focus, select:focus, textarea:focus {
  border-color: #ffcc00;
  outline: none;
  box-shadow: 0 0 4px rgba(255, 204, 0, 0.4);
}

/* ========== BUTTONS ========== */
button {
  width: 100%;
  padding: 14px;
  margin-top: 14px;
  border: none;
  border-radius: 12px;
  background-color: #ffcc00;
  color: #1c1c1e;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(255, 204, 0, 0.2);
}

button:hover {
  background-color: #e6b800;
}

/* ========== BUTTON GROUP ========== */
.button-group {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.button-group button {
  flex: 1;
}

/* ========== RADIO BUTTON ========== */
input[type="radio"] {
  accent-color: #ffcc00;
}

/* ========== DASHBOARD HEADER ========== */
.dashboard-header {
  font-size: 20px;
  color: #ffcc00;
  margin-bottom: 20px;
  font-weight: 600;
}

/* ========== DASHBOARD BUTTONS ========== */
.dashboard-buttons {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.dashboard-buttons button {
  background-color: #ffaa00;
  color: #000;
}

.dashboard-buttons button:hover {
  background-color: #ff9900;
}

/* ========== TABLE STYLING ========== */
table {
  width: 100%;
  overflow-x: auto;
  display: block;
  margin-top: 24px;
  background-color: #2c2c2e;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

table table {
  display: table; /* fix nested table layout */
}

th, td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #3a3a3c;
}

th {
  background-color: #ffcc00;
  color: #1c1c1e;
  font-weight: 600;
}

/* ========== FOOTER ========== */
.footer {
  background-color: #2c2c2e;
  color: #aaa;
  text-align: center;
  padding: 14px;
  font-size: 13px;
  margin-top: auto;
  border-top: 1px solid #3a3a3c;
  width: 100%;
}

/* ========== LINKS ========== */
a {
  color: #ffcc00;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ========== TOGGLE SWITCH (OPTIONAL) ========== */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  margin-top: 12px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #444;
  border-radius: 24px;
  transition: 0.4s;
}

.toggle-slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #ffcc00;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}