body {
  font-family: Arial, sans-serif;
  padding: 20px;
  background-color: #dad2ab;
  margin: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-theme {
  background-color: #222;
  color: #6e6741;
}
body.dark-theme .container {
  background-color: #6c656561;  /* Темний фон */
  color: #3e1818;             /* Світлий текст */
  border-color: #444;      /* Темна рамка */
}

body.dark-theme h1{
  color: #e8e7e2;
}

body.dark-theme #color{
  color: #e8e7e2;
}

#themeToggleBtn {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #fff;
  border: 2px solid #999;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s ease;
  z-index: 999;
}

body.dark-theme #themeToggleBtn {
  background-color: #444;
  color: #dad2ab;
  border-color: #666;
}

.container {
  max-width: 700px;
  margin: 0 auto;
  background-color: azure;
  border-radius: 10px 15px;
  border: solid 4px #c2c2c2;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.note-input {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.note-input input,
.note-input textarea {
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease;
}

.note-input input:focus,
.note-input textarea:focus {
  border-color: #007BFF;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.2);
}

button {
  padding: 10px;
  cursor: pointer;
}

.note-item {
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  border-left: 8px solid #ffc107;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.note-item:hover {
  transform: scale(1.015);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.note-lines {
  margin-top: 10px;
}

.note-line {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.note-line-checkbox {
  margin-right: 8px;
}

.note-buttons {
  margin-top: 10px;
}

.note-buttons button {
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.note-buttons button:hover {
  background-color: #e9ecef;
}

.note-item h3 {
  margin-bottom: 10px;
  padding: 8px 12px;
  border: 2px dashed #007BFF;
  background-color: #e6f0ff;
  border-radius: 6px;
  font-weight: bold;
  font-size: 18px;
}

.note-item p {
  margin-bottom: 5px;
}

.note-item.archived {
  opacity: 0.5;
  background-color: #e0e0e0;
  text-decoration: line-through;
  color: #555;
}

#addNoteBtn {
  background-color: rgb(57, 105, 178);
  color: white;
  font-family: 'Indie Flower', cursive;
  font-size: 18px;
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  display: block;
  border: none;
  padding: 12px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

#addNoteBtn:hover {
  background-color: rgb(45, 90, 155);
}


.note-input textarea {
  padding: 10px;
  font-size: 16px;
  resize: vertical;
  height: 100px;
}

.file-load {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
}

#loadNotesFile {
  padding: 8px;
  font-size: 14px;
  background-color: #fff;
  border: 2px dashed #999;
  border-radius: 6px;
  transition: border-color 0.3s ease;
}

#loadNotesFile:hover {
  border-color: #555;
}



.search-container,
.top-buttons {
  flex: 1 1 300px; /* адаптивна ширина */
  display: flex;
  justify-content: center;
}


.top-buttons button,
#loadNotesFile {
  width: 303px;
  max-width: 100%;
  box-sizing: border-box;
}


#saveNotes,
#installNotesBtn {
  background: linear-gradient(to right, #84fab0, #8fd3f4);
  border: none;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: bold;
  color: #333;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  transition: all 0.25s ease;
}

#saveNotes:hover,
#installNotesBtn:hover {
  transform: translateY(-3px);
  background: linear-gradient(to right, #a1c4fd, #c2e9fb);
}

.search-container {
  max-width: 600px;
  margin: 20px auto 15px auto;
  text-align: center;
}

#searchInput {
  width: 100%;
  max-width: 600px;
  padding: 12px 18px;
  font-size: 16px;
  font-family: Arial, sans-serif;
  border: 2px solid #ccc;
  border-radius: 12px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
}

#searchInput::placeholder {
  color: #999;
  font-style: italic;
}

#searchInput:focus {
  border-color: #007BFF;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
  outline: none;
}

.note-item.dark-note {
  color: #fff;
}

.note-item.dark-note h3 {
  color: #f5f5f5;
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ddd;
}

.note-item.dark-note .note-buttons button {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 600px) {
  #themeToggleBtn {
    top: 10px;
    right: 10px;
    z-index: 10;
    padding: 8px 12px;
    font-size: 14px;
  }
}