/* ===============================
   RESET & BASE
================================ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #020617;
  color: #e5e7eb;
  line-height: 1.6;
}

/* ===============================
   TYPOGRAPHY
================================ */
h1 {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 4px;
}

h2, h3 {
  font-weight: 500;
  margin-top: 0;
}

.subtitle {
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 28px;
}

/* ===============================
   NAVBAR
================================ */
.navbar {
  height: 58px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #020617;
  border-bottom: 1px solid #1e293b;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  color: #94a3b8;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #e5e7eb;
}

.nav-links a.active {
  color: #2563eb;
  font-weight: 500;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: #2563eb;
  border-radius: 2px;
}

/* ===============================
   LAYOUT
================================ */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 40px 32px;
}

/* ===============================
   CARDS
================================ */
.card {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 22px;
}

/* ===============================
   DASHBOARD
================================ */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.card ul {
  padding-left: 18px;
  margin: 0;
}

.card li {
  font-size: 14px;
  margin-bottom: 6px;
}

/* ===============================
   CHECKLIST
================================ */
input[type="checkbox"] {
  accent-color: #2563eb;
  margin-right: 8px;
}

/* ===============================
   NOTES / JOURNAL
================================ */
.note-preview {
  font-size: 14px;
  color: #94a3b8;
}

.note-form {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
}

.note-form select,
.note-form textarea {
  width: 100%;
  background: #020617;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #e5e7eb;
  padding: 10px;
  margin-bottom: 12px;
}

.note-form textarea {
  min-height: 120px;
}

.note-form button {
  padding: 10px 18px;
  background: #2563eb;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
}

/* ===============================
   HABITS
================================ */
.habit-form {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.habit-form input {
  flex: 1;
  padding: 10px;
  background: #020617;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #e5e7eb;
}

.habit-form button {
  padding: 10px 18px;
  background: #16a34a;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
}

.habit-card {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.streak {
  font-size: 14px;
  color: #22c55e;
}

/* ===============================
   FOCUS MODE
================================ */
.focus-container {
  text-align: center;
}

.timer-card {
  margin-top: 40px;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 42px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

#timerDisplay {
  font-size: 56px;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 30px;
}

.timer-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
}

.timer-buttons button {
  padding: 10px 18px;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 8px;
  color: #e5e7eb;
  cursor: pointer;
  font-size: 14px;
}

/* ===============================
   BUTTON MICRO INTERACTION
================================ */
button {
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

button:hover {
  border-color: #2563eb;
}

button:active {
  transform: scale(0.97);
}

/* ===============================
   EMPTY STATE
================================ */
.empty-state {
  font-size: 14px;
  color: #94a3b8;
  font-style: italic;
}
