body {
  font-family: 'Segoe UI', sans-serif;
  background: #eef2f7;
  margin: 0;
  color: #1e293b;
  transition: all 0.3s;
}

/* DARK MODE */
body.dark {
  background: #0f172a;
  color: #e2e8f0;
}

/* NAVBAR */
header {
  background: white;
  color: #1e293b;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
}

body.dark header {
  background: #1e293b;
  color: white;
}

/* CONTAINER */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 2rem;
}

/* NAV BUTTONS */
.nav-actions {
  display: flex;
  gap: 1rem;
}

.nav-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: inherit;
}

.nav-link {
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  color: inherit;
}

/* BUTTON STYLES */
.primary-btn {
  background: #2563eb;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
}

.primary-btn:hover {
  background: #1d4ed8;
}

.secondary-btn {
  background: #e2e8f0;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
}

body.dark .secondary-btn {
  background: #334155;
  color: white;
}

/* GRID */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* =========================
   NOTE CARDS (UPDATED BEHAVIOR)
   ========================= */
.note-card {
  background: white;
  padding: 1rem;
  border-radius: 10px;

  height: 120px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;

  text-align: center;

  transition: none; /* hover removed */
}

/* DARK MODE */
body.dark .note-card {
  background: #1e293b;
}

/* REMOVE HOVER EFFECT COMPLETELY */
#notesList .note-card:hover {
  transform: none;
  box-shadow: none;
}

/* TITLE */
.note-card h3 {
  margin: 0;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

/* =========================
   NOTE ACTION BUTTONS
   ========================= */
.note-actions {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 0.5rem;
}

.note-actions button {
  flex: 1;
  font-size: 0.75rem;
  padding: 0.4rem;
}

/* =========================
   FOLDER SECTION (UNCHANGED)
   ========================= */
.folder-actions {
  display: flex;
  width: 100%;
  gap: 0.5rem;
  justify-content: space-between;
}

.folder-actions button {
  flex: 1;
  font-size: 0.75rem;
  padding: 0.4rem;
}

/* DELETE BUTTON */
.delete-btn {
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.delete-btn:hover {
  background: #dc2626;
}

/* DARK MODE DELETE */
body.dark .delete-btn {
  background: #ef4444;
}

/* FORM */
.add-note-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 2rem;
}

body.dark .add-note-card {
  background: #1e293b;
}

#addNoteForm,
#addFolderForm {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

input, textarea {
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
}

/* LANDING */
.landing {
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.landing-content {
  max-width: 500px;
  text-align: center;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.dark .modal-content {
  background: #1e293b;
}

/* =========================
   TOP BAR
   ========================= */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.search-input {
  flex: 1;
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
}

body.dark .search-input {
  background: #0f172a;
  color: white;
  border: 1px solid #334155;
}