
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

header {
    padding: 20px;
    background: #f4f4f4;
    flex-shrink: 0;
}

#searchInput {
    width: 100%;
    padding: 10px;
    font-size: 18px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

main {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    background: #fff;
}

.note {
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.note-content {
    flex-grow: 1;
    margin-top: 10px;
}

.note-dates {
    margin-top: 10px;
    font-size: 0.9em;
    color: #555;
}

button.pin-button {
    margin-left: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    flex-shrink: 0;
}

button.pin-button.unpin {
    background-color: #dc3545;
}

button.pin-button:focus {
    outline: 2px solid #0056b3;
}

footer {
    padding: 15px;
    background: #f1f1f1;
    flex-shrink: 0;
    max-height: 200px;
    overflow-y: auto;
    position: sticky;
    bottom: 0;
    border-top: 2px solid #ccc;
}

.pinned-note {
    padding: 15px;
    border: 1px solid #007bff;
    background: #e7f0ff;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pinned-note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pinned-note-content {
    margin-top: 10px;
}

.highlight {
    background-color: yellow;
}

@media (max-width: 600px) {
    #searchInput {
        font-size: 16px;
    }

    button.pin-button {
        padding: 5px 8px;
        font-size: 14px;
    }
}

