* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: rgb(30, 28, 47);
    color: #e8dff8;
}

header {
    border-bottom: 1px solid #6d6a6a;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

#search-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    max-width: 500px;
}

#search-input {
    background-color: #44475a;
    border-radius: 5px;
    border: none;
    padding: 10px;
    font-weight: 500;
    color: #e8e8e8;
    width: 100%;
    transition: border 0.3s;
}

#search-input::placeholder {
    color: #a1a1a1;
}

#search-input:focus {
    border: 1px solid #978bda;
    outline: none;
}

#export-notes {
    background-color: #44475a;
    border: none;
    border-radius: 8px;
    color: #fff;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

#export-notes:hover {
    background-color: #978bda;
    color: #000;
}

#add-note-container {
    display: flex;
    width: 100%;
    max-width: 500px;
    margin: 2rem auto 0;
    gap: 1rem;
}

#add-note-container input {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    background-color: #333;
    border: 1px solid #525356;
    color: #fff;
    transition: border 0.3s;
}

#add-note-container input:focus {
    border: 1px solid #978bda;
    outline: none;
}

#add-note-container button {
    cursor: pointer;
    background-color: #44475a;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    transition: background-color 0.3s;
}

#add-note-container button:hover {
    background-color: #978bda;
}

#notes-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.note {
    min-height: 200px;
    padding: 1rem;
    border: 1px solid #3e3e3e;
    border-radius: 10px;
    background-color: #282a36;
    position: relative;
    color: white;
    box-shadow: 0 4px 6px rgba(45, 15, 74, 0.889);
    transition: transform 0.3s, box-shadow 0.3s;
}

.note:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(187, 0, 255, 0.5);
}

.note textarea {
    background-color: transparent;
    resize: none;
    color: white;
    border: none;
    height: 100%;
    outline: none;
}

.note .bi-pin {
    position: absolute;
    left: 10px;
    bottom: 10px;
    font: 1.2rem;
    background-color: #333;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.note .bi-pin:hover {
    background-color: #978bda;
}

.note .bi-x-lg,
.note .bi-file-earmark-plus {
    position: absolute;
    right: 10px;
    top: 10px;
    color: #615f5faa;
    opacity: 0;
    transition: opacity 0.3s, color 0.3s;
}

.note:hover .bi-x-lg,
.note:hover .bi-file-earmark-plus {
    opacity: 1;
}

.note .bi-x-lg:hover,
.note .bi-file-earmark-plus:hover {
    color: white;
}

.note .bi-file-earmark-plus {
    top: 40px;
}

.note.fixed {
    background-color: #343636;
}

@media (max-width: 450px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    #add-note-container {
        width: calc(100% - 2rem);
        padding: 0;
    }

    #notes-container {
        grid-template-columns: 1fr;
    }
}
