* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

body {
  background-color: #f2f4f7;
  color: #333;
}

#add-note-sec {
  padding: 0 10px;
}

/* Header */
.header {
  text-align: center;
  padding: 25px 10px;
  background-color: #0d1e20;
  color: #fff;
}

.header p {
  font-size: 14px;
  opacity: 0.9;
}

.add-note {
  max-width: 550px;
  margin: 30px auto;
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.add-note input,
.add-note textarea {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  outline: none;
}

.add-note textarea {
  resize: none;
  height: 80px;
}

.add-note-btn {
  align-self: flex-end;
  padding: 8px 16px;
  background-color: #118da3;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: transform 0.2s ease;
}

.add-note-btn:hover {
  background-color: #0b6b7c;
}

/* Main Container */
.noteContainer {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 15px;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* Note Card */
.note-card {
  background-color: #ffffff;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;

  cursor: pointer;
}

.note-card:hover {
  transform: translateY(-4px);
}

.note-heading-data {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1f2937;
}

.note-details-data {
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 16px;
}

.emptyMsg {
  text-align: center;
}

.note-btn-sec {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.note-btn-sec button {
  border: none;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
  color: #fff;
}

.edit-btn {
  background-color: #149614;
}
.edit-btn:hover {
  background-color: #067706;
}

.delete-btn {
  background-color: #dd2222;
}
.delete-btn:hover {
  background-color: #a30e0e;
}
