:root {
  --bg: #0a0b14;
  --panel: rgba(255, 255, 255, 0.06);
  --glass: rgba(255, 255, 255, 0.10);
  --border: rgba(255, 255, 255, 0.18);
  --text: #f2f4ff;
  --muted: rgba(255, 255, 255, 0.6);
  --accent: #8f7cff;
  --accent2: #4da6ff;
  --danger: #ff4d4d;
  --success: #4dff88;
  --shadow: 0 18px 40px rgba(0,0,0,0.55);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
}

.notes-dashboard {
  display: flex;
  min-height: 100vh;
}

/* LEFT PANEL */
.panel-left {
  width: 300px;
  background: var(--panel);
  padding: 20px;
  box-shadow: 4px 0 15px var(--shadow);
  display: flex;
  flex-direction: column;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.panel-header h2 {
  font-size: 1.5rem;
}

.panel-header span {
  background: var(--accent);
  color: #fff;
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: bold;
}

.search-bar {
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  margin-bottom: 15px;
  background: var(--glass);
  color: var(--text);
  outline: none;
}

.notes-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.note-card {
  padding: 12px;
  background: var(--glass);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.note-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow);
}

.note-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--text);
}

.btn-add, .btn-home {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: 0.2s;
}

.btn-add:hover, .btn-home:hover {
  background: var(--accent2);
}

/* RIGHT PANEL */
.panel-right {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.note-view {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#noteTitle {
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: var(--panel);
  color: var(--text);
  font-size: 1.2rem;
  outline: none;
}

#noteContent {
  min-height: 300px;
  padding: 15px;
  border-radius: 12px;
  border: none;
  background: var(--glass);
  color: var(--text);
  resize: vertical;
  outline: none;
  font-size: 1rem;
}

.note-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn-save {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-save:hover {
  background: var(--accent2);
}

.btn-delete {
  background: var(--danger);
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-delete:hover {
  opacity: 0.9;
}
