* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  font-family: "Inter", sans-serif;
}

body {
  background: linear-gradient(135deg, #fafaf5, #fffcf6);
  padding: 0 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  display: flex;
  align-items: center;
  background-color: #f5ba13;
  margin: auto -16px;
  padding: 10px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  gap: 8px;
}

.app-header h1 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  margin: 0;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.notes-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.note {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 16px;
  width: 260px;
  margin: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.note:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(247, 199, 68, 0.877);
}

.note h1 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.note p {
  font-size: 1rem;
  line-height: 1.5;
  color: #555;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.note button {
  background: #f5ba13;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 12px;
  bottom: 12px;
  box-shadow: 0 2px 8px rgba(245, 186, 19, 0.15);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.note button:hover,
.note button:focus {
  background: #ffd600;
  color: #fff;
  box-shadow: 0 4px 16px rgba(245, 186, 19, 0.25);
}

form {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 16px 16px 32px 16px;
  margin: 24px auto 32px auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

form .MuiFab-root {
  position: absolute;
  right: 16px;
  bottom: -22px;
  background: linear-gradient(90deg, #f5ba13 60%, #ffd600 100%) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(245, 186, 19, 0.25);
  transition: background 0.2s, box-shadow 0.2s;
  border-radius: 50%;
  font-weight: bold;
}

form .MuiFab-root:hover,
form .MuiFab-root:focus {
  background: linear-gradient(90deg, #e1a20a 60%, #ffd600 100%) !important;
  box-shadow: 0 4px 16px rgba(245, 186, 19, 0.35);
}

form input,
form textarea {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  outline: none;
  background: none;
  resize: none;
  padding: 8px 0;
  width: 100%;
}

footer {
  position: static;
  text-align: center;
  padding: 10px 0;
  width: 100%;
  height: 2.5rem;
  margin-top: 32px;
}

footer p {
  font-size: 0.9rem;
  color: #888;
}

@media (max-width: 800px) {
  .notes-container {
    gap: 8px;
  }
  .note {
    width: 90vw;
    max-width: 350px;
  }
  form {
    max-width: 98vw;
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media (max-width: 500px) {
  .note {
    width: 98vw;
    max-width: 98vw;
    padding: 12px;
  }
  form {
    padding: 12px 48px 32px 8px;
  }
  form button {
    right: 8px;
  }
}
