#menuBar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}
@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .menu-container button {
    padding: 5px 7px;
    font-size: 14px;
  }
}

#noteList {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.note-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.note-card.add-new {
  font-size: 40px;
  font-weight: bold;
  color: #666;
  align-items: center;
  justify-content: center;
}

/* Menü konteyner ve butonlar: varsayılan (açık mod) */
.menu-container {
  position: relative;
  display: inline-block;
  margin-right: 20px;
}

.menu-container button {
  font-weight: bold;
  background-color: transparent;
  border: none;
  font-size: 16px;
  padding: 8px 12px;
  cursor: pointer;
  color: #000; /* Açık modda siyah */
  transition: background-color 0.3s, color 0.3s;
}

/* Hover efekti açık modda */
.menu-container button:hover {
  background-color: #f0f0f0;
  border-radius: 4px;
}

/* Menü dropdown içeriği */
.menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 150px;
  background-color: #fff;
  border: 1px solid #ccc;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.menu div {
  padding: 8px 12px;
  cursor: pointer;
  color: #000;
}

.menu div:hover {
  background-color: #f0f0f0;
}

/* Menü gösterme sihiri: mouse menu-container üzerindeyken göster */
.menu-container:hover .menu {
  display: block;
}

/* KARANLIK MOD */

/* Body dark mode arka plan ve yazı */
body.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

/* Menü butonları karanlık modda */
body.dark-mode .menu-container button {
  color: #f0f0f0; /* Açık yazı */
  background-color: transparent;
}

/* Menü buton hover karanlık mod */
body.dark-mode .menu-container button:hover {
  background-color: #333;
  border-radius: 4px;
}

/* Menü dropdown karanlık mod */
body.dark-mode .menu {
  background-color: #2a2a2a;
  border-color: #555;
  box-shadow: 0 2px 5px rgba(0,0,0,0.7);
}

body.dark-mode .menu div {
  color: #f0f0f0;
}

body.dark-mode .menu div:hover {
  background-color: #3a3a3a;
}

/* Not kutuları normal mod */
.note-card {
  width: 150px;
  height: 150px;
  background-color: white;
  color: black;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  box-sizing: border-box;
  text-align: center;
  transition: 0.2s ease;
  cursor: pointer;
}

.note-card:hover {
  background-color: #f9f9f9;
  transform: scale(1.03);
}

.note-card h4 {
  margin: 5px 0;
  font-size: 16px; /* Font büyütüldü */
}

/* Not kutuları karanlık mod */
body.dark-mode .note-card {
  background-color: #1e1e1e;
  color: #ffffff;
  border: 1px solid #444;
}

body.dark-mode .note-card:hover {
  background-color: #2a2a2a;
}

/* "+" kutusu karanlık mod */
body.dark-mode .note-card.add-new {
  color: #bbb;
}

/* Daha dar ekranlar için (örneğin <500px) tek sütun */
@media (max-width: 500px) {
  .note-card {
    flex: 1 1 100%;
  }

  #noteEditor textarea {
    width: 100%;
  }

  #noteEditor input {
    width: 100%;
  }
}

#noteEditor {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  z-index: 1001;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  display: none;
}

/* Karanlık mod için */
body.dark-mode #noteEditor {
  background-color: #1f1f1f;
  color: #fff;
}

