/* --- MODULE NOTES : SPLIT VIEW --- */
#personnal-notes {
  display: flex;
  flex-direction: row; /* Disposition horizontale */
  height: 100%;
  min-height: 250px;
  gap: 15px;
  color: #ecf0f1;
}

/* Colonne de gauche : La liste */
.notes-sidebar {
  width: 35%; /* Prend 35% de la largeur */
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding-right: 10px;
}

.notes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-y: auto;
  flex-grow: 1;
}

.note-item {
  background: rgba(30, 35, 45, 0.7);
  border-left: 3px solid transparent;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.note-item:hover {
  background: rgba(52, 152, 219, 0.2);
}

.note-item.active {
  background: rgba(52, 152, 219, 0.3);
  border-left: 3px solid #3498db;
}

.note-item-title {
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.note-item-date {
  font-size: 0.7rem;
  color: #7f8c8d;
}

.btn-new-note {
  background: #2ecc71;
  color: #fff;
  border: none;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 10px;
  transition: background 0.2s;
  width: 100%;
}
.btn-new-note:hover { background: #27ae60; }

/* Colonne de droite : L'éditeur */
.notes-editor {
  width: 65%; /* Prend 65% de la largeur */
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.note-input-title {
  background: rgba(20, 25, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 10px;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: bold;
  outline: none;
}
.note-input-title:focus { border-color: #3498db; }

.note-input-content {
  background: rgba(20, 25, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 10px;
  border-radius: 4px;
  font-size: 0.9rem;
  flex-grow: 1;
  resize: none;
  outline: none;
  font-family: inherit;
}
.note-input-content:focus { border-color: #3498db; }

.notes-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-save {
  background: #3498db;
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}
.btn-save:hover { background: #2980b9; }

.btn-delete {
  background: #e74c3c;
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  display: none; /* Masqué par défaut (si c'est une nouvelle note) */
}
.btn-delete:hover { background: #c0392b; }

.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #7f8c8d;
  font-style: italic;
  text-align: center;
}
