* {
    box-sizing: border-box;
    font-family: "Inter", system-ui, sans-serif;
}

body {
    margin: 0;
    background: linear-gradient(135deg, #eef2ff, #fdfbfb);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.7);
    padding: 14px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.logo {
    font-size: 22px;
    font-weight: 700;
}

.navbar input {
    padding: 10px 14px;
    width: 220px;
    border-radius: 25px;
    border: none;
    outline: none;
    background: #f1f3f4;
}

/* MAIN */
.main {
    flex: 1;
    padding: 30px 20px;
}

/* NOTE FORM */
.note-form {
    max-width: 520px;
    margin: auto;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    padding: 18px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.note-form:hover {
    transform: translateY(-2px);
}

.note-form input,
.note-form textarea {
    width: 100%;
    border: none;
    outline: none;
    margin-bottom: 10px;
    font-size: 16px;
    background: transparent;
}

.note-form textarea {
    resize: none;
}

/* ACTIONS */
.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* COLORS */
.colors {
    display: flex;
    gap: 10px;
}

.color {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s ease, border 0.2s;
}

.color:hover {
    transform: scale(1.15);
    border-color: #555;
}

.yellow { background: #fff9c4; }
.green { background: #dcedc8; }
.blue { background: #bbdefb; }
.pink { background: #f8bbd0; }

/* ADD BUTTON */
#addNote {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s;
}

#addNote:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* NOTES GRID */
.notes {
    margin-top: 35px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

/* NOTE CARD */
.note {
    padding: 16px;
    border-radius: 14px;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    animation: fadeIn 0.4s ease;
    transition: transform 0.25s ease;
}

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

.note h4 {
    margin: 0 0 6px;
    font-size: 17px;
}

.note p {
    font-size: 14px;
    line-height: 1.5;
}

/* PIN & DELETE */
.note .pin,
.note .delete {
    position: absolute;
    top: 10px;
    cursor: pointer;
    font-size: 16px;
}

.note .pin {
    right: 38px;
}

.note .delete {
    right: 12px;
}

/* FOOTER */
.footer {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    text-align: center;
    padding: 14px;
    font-size: 14px;
    box-shadow: 0 -8px 20px rgba(0,0,0,0.05);
}

/* ANIMATION */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
