/* ========== GLOBAL RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", system-ui, sans-serif;
}

body.dashboard-body {
  background: #0b0b0b;
  color: #f1f1f1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ========== HEADER ========== */
.topbar {
  background: #111;
  color: #ffd700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  box-shadow: 0 2px 6px rgba(255, 215, 0, 0.2);
}

.topbar .brand h1 {
  margin: 0;
  font-size: 1.5rem;
}

.subtitle {
  font-size: 0.85rem;
  color: #bbb;
}

.logout-btn {
  background: none;
  border: 1px solid #ffd700;
  color: #ffd700;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.logout-btn:hover {
  background: #ffd700;
  color: #111;
}

/* ========== GRID LAYOUT ========== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  flex: 1;
}

/* ========== SIDEBAR (TASKS) ========== */
.sidebar {
  background: #141414;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.15);
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
  max-height: 60vh;
  overflow-y: auto;
}

.task-bubble {
  background: #1e1e1e;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 4px solid #ffd700;
  transition: all 0.2s;
}

.task-bubble:hover {
  transform: scale(1.02);
  background: #2a2a2a;
}

.task-actions button {
  background: none;
  border: none;
  color: #ffd700;
  cursor: pointer;
  font-size: 1rem;
  margin-left: 0.3rem;
}

.primary-btn,
.gold-accent,
.full-width {
  background: linear-gradient(135deg, #b8860b, #ffd700);
  color: #111;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.primary-btn:hover,
.gold-accent:hover {
  background: linear-gradient(135deg, #ffd700, #b8860b);
  transform: scale(1.03);
}

.full-width {
  width: 100%;
  margin-top: 0.5rem;
}

/* ========== CALENDAR ========== */
.calendar-section {
  background: #141414;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.15);
  text-align: center;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.calendar-day {
  padding: 0.8rem 0;
  border-radius: 8px;
  background: #1a1a1a;
  cursor: pointer;
  transition: all 0.2s;
}

.calendar-day:hover {
  background: #222;
}

.calendar-day.today {
  border: 2px solid #ffd700;
}

.calendar-day.selected {
  background: #ffd700;
  color: #111;
  font-weight: 600;
}

.calendar-day.has-task::after {
  content: "•";
  color: #ffd700;
  display: block;
  margin-top: 4px;
  font-size: 1.1rem;
}

/* ========== AGENDA ========== */
.agenda-section {
  background: #141414;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.15);
}

.agenda-item {
  background: #1e1e1e;
  border-left: 4px solid #ffd700;
  padding: 0.5rem;
  margin: 0.3rem 0;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
}

/* ========== NOTES ========== */
.notes-section {
  margin: 1rem;
  background: #141414;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.15);
}

#notes-area {
  width: 100%;
  min-height: 100px;
  margin-top: 0.5rem;
  background: #1e1e1e;
  border: 1px solid #333;
  color: #f1f1f1;
  border-radius: 8px;
  padding: 0.5rem;
}

/* ========== MODAL ========== */
.modal.hidden {
  display: none;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-content {
  background: #111;
  padding: 1.5rem;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.25);
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  margin: 0.4rem 0;
  padding: 0.5rem;
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 6px;
  color: #f1f1f1;
}
/* ---------- Auth Pages ---------- */
.auth-body {
  background-color: #111;
  color: #f8f8f8;
  font-family: "Inter", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  flex-direction: column;
  margin: 0;
}

.auth-container {
  background-color: #1a1a1a;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
  text-align: center;
  width: 320px;
}

.auth-title {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

.auth-subtitle {
  font-size: 1rem;
  color: #aaa;
  margin-bottom: 1.5rem;
}

.auth-form input {
  width: 100%;
  margin: 0.5rem 0;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #333;
  background-color: #222;
  color: #fff;
}

.gold-btn {
  background: linear-gradient(90deg, #c9a000, #ffd700);
  border: none;
  padding: 0.8rem;
  color: #000;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}

.gold-btn:hover {
  filter: brightness(1.2);
}

.auth-switch {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.auth-switch a {
  color: #ffd700;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-footer {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #888;
}


/* ========== FOOTER ========== */
.footer {
  text-align: center;
  padding: 0.5rem;
  font-size: 0.8rem;
  color: #999;
  border-top: 1px solid #222;
}
