body {
    margin: 0px;
}

.header {
    margin: 0px;
    background-color: lightgrey;
    width: 100%;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    box-sizing: border-box;
}

.saved-link {
    color: black;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
}

.saved-link:hover {
    text-decoration: underline;
}

.nav-button {
    background-color: transparent;
    border: none;
    font-size: 16px;
    cursor: pointer;
    width: 70px;
    height: 70px;
    padding: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-button img {
    width: 70px;
    height: 70px;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-button:hover img {
    transform: scale(1.2);
    opacity: 0.8;
}

.dark-mode #display-mode img {
    transform: rotate(180deg);
}

.dark-mode #display-mode:hover img {
    transform: rotate(180deg) scale(1.2);
}

#note-input-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 24px 16px;
    padding: 20px;
    background: linear-gradient(135deg, lightgrey, white);
    border: 1px solid lightgrey;
    border-radius: 12px;
}

#note-input-section form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 520px;
}

#note-input {
    flex: 1 1 260px;
    min-width: 220px;
    padding: 10px 12px;
    border: 1px solid lightgrey;
    border-radius: 8px;
    font-size: 16px;
    box-shadow: inset 0px 1px 2px rgba(0, 0, 0, 0.08);
}

#note-input:focus {
    outline: none;
    border-color: grey;
    box-shadow: 0px 0px 0px 3px rgba(122, 122, 122, 0.25);
}

#note-form button {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background-color: black;
    color: white;
    font-size: 14px;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.2s ease;
}

#note-form button:hover {
    background-color: darkslategrey;
    transform: scale(1.05);
}

#notes-section {
    border: black solid 1px;
    border-radius: 12px;
    padding-left: 150px;
    padding-right: 150px;
    font-size: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 24px 16px;
    background: linear-gradient(135deg, lightgrey, darkgrey);
}

.notes-list {
    width: 100%;
    list-style: none;
    padding-left: 0;
}

.note-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 10px 0;
    font-size: 24px;
}

.save-note-button {
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 14px;
    cursor: pointer;
}

.save-note-button:disabled {
    cursor: default;
    opacity: 0.7;
}

.is-hidden {
    display: none;
}

#notes-list li,
#notes-list p {
    transition: color 0.25s ease;
}

#notes-list li:hover,
#notes-list p:hover {
    color: darkgrey;
}

#delete-confirmation-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 1px solid lightgrey;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    text-align: center;
}

#delete-confirmation-form p {
    margin: 0 0 16px 0;
    font-size: 18px;
}

#confirm-delete,
#cancel-delete {
    margin: 0 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.2s ease;
}

#confirm-delete {
    background-color: green;
}

#cancel-delete {
    background-color: red;
}

#confirm-delete:hover,
#cancel-delete:hover {
    transform: scale(1.05);
}

#confirm-delete:hover {
    background-color: darkgreen;
}

#cancel-delete:hover {
    background-color: darkred;
}

.dark-mode {
    background-color: black;
    color: white;
}

.dark-mode .header {
    background-color: darkslategrey;
}

.dark-mode #note-input-section {
    background: linear-gradient(135deg, darkslategrey, black);
    border: 1px solid lightgrey;
}

.dark-mode .saved-link {
    color: white;
}

.dark-mode #note-input {
    background-color: black;
    border: 1px solid lightgrey;
    color: white;
}

.dark-mode #notes-section {
    background: linear-gradient(135deg, black, darkslategrey);
    border: 1px solid lightgrey;
}

.dark-mode #delete-confirmation-form {
    background-color: darkslategrey;
    border: 1px solid lightgrey;
}

.saved-notes-main {
    margin: 24px 16px;
}

#saved-notes-list {
    width: 100%;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

#saved-notes-list li {
    margin: 10px 0;
    font-size: 24px;
    transition: color 0.25s ease;
}

#saved-notes-list li:hover {
    color: darkgrey;
}

.page-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

#clear-saved-notes {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background-color: black;
    color: white;
    font-size: 14px;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.2s ease;
}

#clear-saved-notes:hover {
    background-color: darkslategrey;
    transform: scale(1.05);
}

.dark-mode #saved-notes-list li:hover {
    color: lightgrey;
}
