@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700&family=Montserrat:wght@700&display=swap');

:root {
    --bg-color: #f0f4f8;
    --text-color: #2d3748;
    --primary-color: #4a90e2;
    --secondary-color: #48bb78;
    --accent-color: #ed64a6;
    --button-text-color: #ffffff;
    --heading-color: #2b6cb0;
    --input-bg-color: #ffffff;
    --note-bg-color: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-color: #1a202c;
    --text-color: #e2e8f0;
    --primary-color: #63b3ed;
    --secondary-color: #68d391;
    --accent-color: #f687b3;
    --button-text-color: #1a202c;
    --heading-color: #90cdf4;
    --input-bg-color: #2d3748;
    --note-bg-color: #2d3748;
    --shadow-color: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
}

body, html {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-image: 
        linear-gradient(to right, rgba(74, 144, 226, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(74, 144, 226, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    transition: background-color 0.5s ease, color 0.5s ease;
}

#app {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

#title {
    font-family: 'Montserrat', sans-serif;
    color: var(--heading-color);
    text-align: center;
    text-shadow: 2px 2px 4px var(--shadow-color);
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

#title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    transform: translate3d(5px, 5px, 0);
    color: rgba(0, 0, 0, 0.2);
    z-index: -1;
}

#toolbar {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

#toolbar button {
    margin: 0 10px;
}

#main-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

#link-container, #note-container, #edit-container {
    background: var(--note-bg-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px var(--shadow-color);
    padding: 20px;
    flex: 1;
    min-width: 300px;
    transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

[data-theme="dark"] #link-container,
[data-theme="dark"] #note-container,
[data-theme="dark"] #edit-container {
    background-image: 
        linear-gradient(to right, rgba(99, 179, 237, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(99, 179, 237, 0.1) 1px, transparent 1px);
}

#note-container {
    flex: 2;
}

#note-title, #note-content, #note-link, #encryption-password {
    width: 100%;
    background: var(--input-bg-color);
    color: var(--text-color);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    max-width: 100%;
    transition: all 0.3s ease;
}

#note-content {
    min-height: 200px;
    resize: vertical;
    border: 1px solid var(--primary-color);
    line-height: 1.6;
    text-align: justify;
    margin-top: 15px;
    padding: 15px;
}

#note-content:hover {
    border-color: var(--accent-color);
}

#note-content:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(237, 100, 166, 0.3);
}

button {
    background-color: var(--primary-color);
    color: var(--button-text-color);
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    transition: transform 0.2s;
}

button:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.note {
    background: var(--note-bg-color);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px var(--shadow-color);
    transition: all 0.3s ease;
    line-height: 1.6;
    font-size: 16px;
}

.note:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.note h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--heading-color);
    font-size: 20px;
}

.note-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.note-actions button {
    padding: 5px 10px;
    font-size: 0.9em;
}

/* Hiệu ứng viền sáng cho các trường input khi focus */
#note-title:focus,
#note-content:focus,
#note-link:focus,
#encryption-password:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.3);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hiệu ứng cho trường contenteditable */
#note-content:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.3);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Đảm bảo rằng hiệu ứng cũng hoạt động trong chế độ tối */
[data-theme="dark"] #note-title:focus,
[data-theme="dark"] #note-content:focus,
[data-theme="dark"] #note-link:focus,
[data-theme="dark"] #encryption-password:focus {
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.3);
}

/* Thêm hiệu ứng ripple cho các nút */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple:after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform .5s, opacity 1s;
}

.ripple:active:after {
    transform: scale(0, 0);
    opacity: .3;
    transition: 0s;
}

/* Thêm hiệu ứng skeleton loading */
@keyframes loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.note-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 10px;
    height: 100px;
}

/* Tùy chỉnh thanh cuộn */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(205, 214, 244, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Responsive design */
@media (max-width: 1200px) {
    #app {
        max-width: 95%;
    }
}

@media (max-width: 992px) {
    #main-container {
        flex-direction: column;
    }

    #link-container, #edit-container, #note-container {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    #main-container {
        flex-direction: column;
    }

    #link-container, #note-container, #edit-container {
        width: 100%;
    }

    #toolbar {
        flex-wrap: wrap;
    }

    #toolbar button {
        margin-bottom: 10px;
    }
}

/* Xóa phần #background cũ nếu có */


/* Thêm hoặc cập nhật các phần CSS sau */

#edit-container {
    display: flex;
    flex-direction: column;
}

#note-list {
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-color);
}

#note-list::-webkit-scrollbar {
    width: 8px;
}

#note-list::-webkit-scrollbar-track {
    background: var(--bg-color);
}

#note-list::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
}

#note-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#add-note {
    margin-bottom: 20px;
    background-color: var(--accent-color);
    color: var(--button-text-color);
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

#add-note:hover {
    background-color: var(--primary-color);
    transform: scale(1.05);
}

.encrypt-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

#encryption-password {
    flex-grow: 1;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.form-buttons button {
    flex: 1;
}

.note {
    background-color: var(--input-bg-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px var(--shadow-color);
    line-height: 1.6;
    font-size: 16px;
}

.note h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--heading-color);
    font-size: 20px;
}

.note-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.note-actions button {
    padding: 5px 10px;
    font-size: 0.9em;
}

/* Hiệu ứng viền sáng cho các trường input khi focus */
#note-title:focus,
#note-content:focus,
#note-link:focus,
#encryption-password:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.3);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hiệu ứng cho trường contenteditable */
#note-content:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.3);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Đảm bảo rằng hiệu ứng cũng hoạt động trong chế độ tối */
[data-theme="dark"] #note-title:focus,
[data-theme="dark"] #note-content:focus,
[data-theme="dark"] #note-link:focus,
[data-theme="dark"] #encryption-password:focus {
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.3);
}

/* Thêm hiệu ứng ripple cho các nút */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple:after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform .5s, opacity 1s;
}

.ripple:active:after {
    transform: scale(0, 0);
    opacity: .3;
    transition: 0s;
}

/* Thêm hiệu ứng skeleton loading */
@keyframes loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.note-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 10px;
    height: 100px;
}

/* Tùy chỉnh thanh cuộn */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(205, 214, 244, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Responsive design */
@media (max-width: 1200px) {
    #app {
        max-width: 95%;
    }
}

@media (max-width: 992px) {
    #main-container {
        flex-direction: column;
    }

    #link-container, #edit-container, #note-container {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    #main-container {
        flex-direction: column;
    }

    #link-container, #note-container, #edit-container {
        width: 100%;
    }

    #toolbar {
        flex-wrap: wrap;
    }

    #toolbar button {
        margin-bottom: 10px;
    }
}

/* Xóa phần #background cũ nếu có */


/* Thêm hoặc cập nhật các phần CSS sau */

#edit-container {
    display: flex;
    flex-direction: column;
}

#note-list {
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-color);
}

#note-list::-webkit-scrollbar {
    width: 8px;
}

#note-list::-webkit-scrollbar-track {
    background: var(--bg-color);
}

#note-list::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
}

#note-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#add-note {
    margin-bottom: 20px;
    background-color: var(--accent-color);
    color: var(--button-text-color);
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

#add-note:hover {
    background-color: var(--primary-color);
    transform: scale(1.05);
}

.encrypt-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

#encryption-password {
    flex-grow: 1;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.form-buttons button {
    flex: 1;
}

.note {
    background-color: var(--input-bg-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px var(--shadow-color);
    line-height: 1.6;
    font-size: 16px;
}

.note h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--heading-color);
    font-size: 20px;
}

.note-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.note-actions button {
    padding: 5px 10px;
    font-size: 0.9em;
}

/* Hiệu ứng viền sáng cho các trường input khi focus */
#note-title:focus,
#note-content:focus,
#note-link:focus,
#encryption-password:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.3);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hiệu ứng cho trường contenteditable */
#note-content:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.3);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Đảm bảo rằng hiệu ứng cũng hoạt động trong chế độ tối */
[data-theme="dark"] #note-title:focus,
[data-theme="dark"] #note-content:focus,
[data-theme="dark"] #note-link:focus,
[data-theme="dark"] #encryption-password:focus {
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.3);
}

/* Thêm hiệu ứng ripple cho các nút */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple:after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform .5s, opacity 1s;
}

.ripple:active:after {
    transform: scale(0, 0);
    opacity: .3;
    transition: 0s;
}

/* Thêm hiệu ứng skeleton loading */
@keyframes loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.note-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 10px;
    height: 100px;
}

/* Tùy chỉnh thanh cuộn */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(205, 214, 244, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Responsive design */
@media (max-width: 1200px) {
    #app {
        max-width: 95%;
    }
}

@media (max-width: 992px) {
    #main-container {
        flex-direction: column;
    }

    #link-container, #edit-container, #note-container {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    #main-container {
        flex-direction: column;
    }

    #link-container, #note-container, #edit-container {
        width: 100%;
    }

    #toolbar {
        flex-wrap: wrap;
    }

    #toolbar button {
        margin-bottom: 10px;
    }
}

/* Xóa phần #background cũ nếu có */


/* Thêm hoặc cập nhật các phần CSS sau */

#edit-container {
    display: flex;
    flex-direction: column;
}

#note-list {
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-color);
}

#note-list::-webkit-scrollbar {
    width: 8px;
}

#note-list::-webkit-scrollbar-track {
    background: var(--bg-color);
}

#note-list::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
}

#note-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#add-note {
    margin-bottom: 20px;
    background-color: var(--accent-color);
    color: var(--button-text-color);
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

#add-note:hover {
    background-color: var(--primary-color);
    transform: scale(1.05);
}

.encrypt-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

#encryption-password {
    flex-grow: 1;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.form-buttons button {
    flex: 1;
}

.note {
    background-color: var(--input-bg-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px var(--shadow-color);
    line-height: 1.6;
    font-size: 16px;
}

.note h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--heading-color);
    font-size: 20px;
}

.note-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.note-actions button {
    padding: 5px 10px;
    font-size: 0.9em;
}

/* Hiệu ứng viền sáng cho các trường input khi focus */
#note-title:focus,
#note-content:focus,
#note-link:focus,
#encryption-password:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.3);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hiệu ứng cho trường contenteditable */
#note-content:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.3);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Đảm bảo rằng hiệu ứng cũng hoạt động trong chế độ tối */
[data-theme="dark"] #note-title:focus,
[data-theme="dark"] #note-content:focus,
[data-theme="dark"] #note-link:focus,
[data-theme="dark"] #encryption-password:focus {
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.3);
}

/* Thêm hiệu ứng ripple cho các nút */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple:after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform .5s, opacity 1s;
}

.ripple:active:after {
    transform: scale(0, 0);
    opacity: .3;
    transition: 0s;
}

/* Thêm hiệu ứng skeleton loading */
@keyframes loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.note-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 10px;
    height: 100px;
}

/* Tùy chỉnh thanh cuộn */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(205, 214, 244, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Responsive design */
@media (max-width: 1200px) {
    #app {
        max-width: 95%;
    }
}

@media (max-width: 992px) {
    #main-container {
        flex-direction: column;
    }

    #link-container, #edit-container, #note-container {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    #main-container {
        flex-direction: column;
    }

    #link-container, #note-container, #edit-container {
        width: 100%;
    }

    #toolbar {
        flex-wrap: wrap;
    }

    #toolbar button {
        margin-bottom: 10px;
    }
}

/* Xóa phần #background cũ nếu có */


/* Thêm hoặc cập nhật các phần CSS sau */

#edit-container {
    display: flex;
    flex-direction: column;
}

#note-list {
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-color);
}

#note-list::-webkit-scrollbar {
    width: 8px;
}

#note-list::-webkit-scrollbar-track {
    background: var(--bg-color);
}

#note-list::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
}

#note-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#audio-controls {
    position: fixed;
    bottom: 20px; /* Khoảng cách từ dưới lên */
    left: 20px; /* Khoảng cách từ bên trái sang */
    display: flex;
    gap: 15px; /* Khoảng cách giữa các nút */
}

#version {
    position: fixed;
    bottom: 60px; /* Đặt cách từ dưới lên để có khoảng cách với dòng chữ tác giả */
    right: 20px; /* Khoảng cách từ bên phải sang */
    color: rgba(45, 55, 72, 0.7); /* Màu nhạt hơn so với site */
    font-size: 14px; /* Kích thước font phù hợp */
    font-family: 'Poppins', sans-serif; /* Font chữ phù hợp */
    z-index: 1000; /* Đảm bảo nó nằm trên các phần tử khác */
    text-align: right; /* Căn chỉnh văn bản sang bên phải */
}

#author-text {
    position: fixed; /* Đặt vị trí cố định */
    bottom: 40px; /* Khoảng cách từ dưới lên */
    right: 20px; /* Khoảng cách từ bên phải sang */
    color: rgba(45, 55, 72, 0.7); /* Màu nhạt hơn so với site */
    font-size: 14px; /* Kích thước font phù hợp */
    font-family: 'Poppins', sans-serif; /* Font chữ phù hợp */
    z-index: 1000; /* Đảm bảo nó nằm trên các phần tử khác */
    text-align: right; /* Căn chỉnh văn bản sang bên phải */
}

#add-note {
    margin-bottom: 20px;
    background-color: var(--accent-color);
    color: var(--button-text-color);
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

#add-note:hover {
    background-color: var(--primary-color);
    transform: scale(1.05);
}

.encrypt-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

#encryption-password {
    flex-grow: 1;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.form-buttons button {
    flex: 1;
}

.note {
    background-color: var(--input-bg-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px var(--shadow-color);
    line-height: 1.6;
    font-size: 16px;
}

.note h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--heading-color);
    font-size: 20px;
}

.note-actions {
    display: flex;}