/* ===== THEME VARIABLES ===== */
:root {
  --bg: #0d1117;
  --container-bg: #161b22;
  --text: #e6edf3;
  --muted: #8b949e;
  --input-bg: #21262d;
  --border: #30363d;
  --primary: #2ea043;
  --secondary: #218bff;
  --danger: #f85149;
  --card-bg: #1c2128;
  --hover: #2d333b;
}

body.light-mode {
  --bg: #f6f8fa;
  --container-bg: #ffffff;
  --text: #24292f;
  --muted: #57606a;
  --input-bg: #f0f1f3;
  --border: #d0d7de;
  --primary: #2da44e;
  --secondary: #0969da;
  --danger: #cf222e;
  --card-bg: #f6f8fa;
  --hover: #eaeef2;
}

/* Extra Themes */
body.purple-mode {
  --primary: #a855f7;
  --secondary: #6366f1;
  --card-bg: #1f1d36;
  --hover: #2d1b4e;
}

body.orange-mode {
  --primary: #f97316;
  --secondary: #f59e0b;
  --card-bg: #33221b;
  --hover: #4a2c1d;
}

body.teal-mode {
  --primary: #14b8a6;
  --secondary: #0ea5e9;
  --card-bg: #1b3a36;
  --hover: #164e63;
}

/* ===== GLOBAL ===== */
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  justify-content: center;
  padding: 20px;
  transition: background 0.3s, color 0.3s;
}

.container {
  max-width: 900px;
  width: 100%;
  background: var(--container-bg);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ===== HEADER ===== */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  margin: 0;
  font-size: 22px;
  color: var(--text);
}

/* ===== FORMS ===== */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

label {
  font-size: 14px;
  color: var(--muted);
}

input, select, textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--secondary);
  outline: none;
}

/* ===== BUTTONS ===== */
.btn {
  padding: 10px 16px;
  margin: 5px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.btn.primary { background: var(--primary); color: #fff; }
.btn.secondary { background: var(--secondary); color: #fff; }
.btn.danger { background: var(--danger); color: #fff; }

.btn:hover { opacity: 0.9; }

/* ===== DASHBOARD CARDS ===== */
.menu {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.card {
  background: var(--card-bg);
  padding: 25px 20px;
  border-radius: 10px;
  text-align: center;
  width: 200px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-5px);
  background: var(--hover);
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.card h3 {
  margin: 12px 0;
  font-size: 18px;
}

/* ===== TABLE ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

th, td {
  border: 1px solid var(--border);
  padding: 10px;
  text-align: center;
}

th {
  background: var(--input-bg);
}

/* ===== NOTES ===== */
#noteList {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

#noteList li {
  background: var(--card-bg);
  padding: 10px;
  margin-bottom: 6px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border);
}

#noteList button {
  background: transparent;
  border: none;
  color: var(--danger);
  cursor: pointer;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  margin-top: 20px;
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: var(--container-bg);
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 700px;
  color: var(--text);
}
