* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #e0f7fa, #e8eaf6);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 400px;
    height: 500px;
    background-color: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
}

h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.form {
    flex-shrink: 0;
}

input,
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

input:focus,textarea:focus {
    outline: none;
    border: 1px solid #3498db;
    box-shadow: 0 0 5px rgba(52,152,219,0.3)
}

textarea {
    resize: none;
    height: 80px;
}

button {
    width: 100%;
    padding: 10px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

button:hover {
    background: #27ae60;
    transform: translateY(-1px)
}

button:active {
    transform: scale(0.97)
}

#searchInput {
    flex-shrink: 0;
}

ul {
    list-style: none;
    padding: 0;
    overflow-y: auto;
    flex: 1
}

ul::-webkit-scrollbar {
    width: 6px;
}

ul::-webkit-scrollbar-thumb{
    background: #ccc;
    border-radius: 4px  r;
}

li {
    background: #ffffff;
    border: 1px solid #eee;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: 0.2s ease;
}

li:hover{
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}


.note-title {
    font-weight: bold;
    margin-bottom: 4px;
}

.note-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
}

.editBtn {
    background: #3498db;
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 8px;
    margin-top: 5px;
}

.deleteBtn {
  background: #e74c3c;
  border: none;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
}