* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

button,
textarea,
input {
  font: inherit;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top, #1e293b 0%, #0f172a 45%), #020617;

  font-family: "Inter", sans-serif;
  color: white;
  padding: 40px 20px;
}
.app {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.eyebrow {
  color: #38bdf8;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
}
.notes-count {
  width: 110px;
  height: 110px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.notes-count span {
  font-size: 2rem;
  font-weight: 700;
}

.notes-count p {
  color: #cbd5e1;
  font-size: 14px;
}
.create-note-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border-radius: 28px;
  padding: 24px;
  margin-bottom: 32px;
}
textarea {
  width: 100%;
  min-height: 180px;
  resize: none;
  border: none;
  outline: none;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  padding: 20px;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}
textarea::placeholder {
  color: #94a3b8;
}
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}
button {
  border: none;
  cursor: pointer;
  transition: 0.25s ease;
}
.primary-btn {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: white;
  padding: 14px 22px;
  border-radius: 16px;
  font-weight: 600;
}

.primary-btn:hover {
  transform: translateY(-2px);
}
.secondary-btn {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  padding: 14px 22px;
  border-radius: 16px;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.note-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 20px;
  backdrop-filter: blur(16px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.note-card p {
  color: #e2e8f0;
  line-height: 1.7;
  margin-bottom: 18px;
  word-break: break-word;
}
.note-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.note-actions {
  display: flex;
  gap: 10px;
}
.edit-btn {
  border: none;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.25s ease;
}

.edit-btn:hover {
  background: rgba(56, 189, 248, 0.2);
}
.note-date {
  color: #94a3b8;
  font-size: 13px;
}
.delete-btn {
  border: none;
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.25s ease;
}

.delete-btn:hover {
  background: rgba(239, 68, 68, 0.2);
}

.empty-state {
  padding: 70px 20px;
  color: #94a3b8;
  text-align: center;
}
.empty-state h3 {
  color: white;
  margin-bottom: 10px;
}

.hidden {
  display: none;
}
