/* Global Styling */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom right, #007bff, #f4f4f9);
  color: #333;
}

.app-container {
  max-width: 90%;
  margin: 40px auto;
  padding: 20px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
}

h1 {
  text-align: center;
  font-size: 2rem;
  color: #007bff;
  margin-bottom: 20px;
}

/* Input Container */
.input-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

textarea {
  width: 100%;
  height: 120px;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  resize: none;
  font-size: 1rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

button {
  padding: 10px 15px;
  font-size: 1rem;
  font-weight: bold;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
  background: #0056b3;
  transform: scale(1.05);
}

button:active {
  background: #003f7f;
  transform: scale(1);
}

/* Notes Container */
.notes-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

/* Individual Note */
.note {
  background: #f9f9f9;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.note:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.note p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 10px;
  word-wrap: break-word;
}

.note-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.note-actions button {
  padding: 5px 10px;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.note-actions button.edit {
  background: #28a745;
  color: white;
}

.note-actions button.edit:hover {
  background: #218838;
}

.note-actions button.delete {
  background: #dc3545;
  color: white;
}

.note-actions button.delete:hover {
  background: #c82333;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
  }

  textarea {
    height: 100px;
    font-size: 0.9rem;
  }

  button {
    font-size: 0.9rem;
    padding: 8px 12px;
  }
}

@media (max-width: 480px) {
  .app-container {
    margin: 20px;
    padding: 15px;
  }

  h1 {
    font-size: 1.6rem;
  }

  textarea {
    height: 80px;
    font-size: 0.8rem;
  }

  button {
    font-size: 0.8rem;
    padding: 7px 10px;
  }

  .notes-container {
    grid-template-columns: 1fr;
  }
}
