.thrid-box {
    margin: 10px;
    height: 100%;
    overflow-y: hidden; /* Скрыть скролл по умолчанию */
    scrollbar-gutter: stable;
}

.thrid-box:hover {
    overflow-y: auto; /* Показать скролл при наведении */
}

.thrid-box::-webkit-scrollbar {
    width: 2px;
}

.thrid-box::-webkit-scrollbar-track {
    background: rgba(var(--text-color), 0.1);
    border-radius: 3px;
}

.thrid-box::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 3px;
}

.notes-header {
    color: var(--accent-color);
    font-size: 18px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* Контейнер для карточек */
.notes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    overflow-y: auto;
    padding: 1px;
    margin-bottom: 10px;
}

/* Карточка заметки */
.note-card {
    flex: 1 1 180px;
    background: rgba(var(--primary-color), 0.15);
    border-radius: 8px;
    padding: 6px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

/* Эффекты при наведении */
.note-card:hover {
    transform: translateY(-3px);
    background: rgba(var(--primary-color), 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.note-card:hover .note-content {
    max-height: 200px;
    opacity: 1;
}

/* Уголок-индикатор */
.note-corner {
    position: absolute;
    top: 0;
    right: 0;
    border: 7px solid transparent;
    border-right-color: var(--success-light);
    border-top-color: var(--success-light);
}

/* Заголовок и дата */
.note-header {
    display: flex;
    /* gap: 1px; */
    align-items: flex-start;
    font-size: 12px;
}

.note-empty {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}

.note-icon {
    font-size: 10px;
    margin-top: 3px;
    opacity: 0.8;
}

.note-title {
    color: rgba(var(--accent-color));
    font-size: 12px;
    margin: 0 0 8px 0;
}

.note-date {
    font-size: 10px;
    white-space: nowrap;
}

/* Содержимое с анимацией */
.note-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.note-content p {
    color: rgba(var(--text-color), 0.9);
    font-size: 10px;
    line-height: 1.5;
    margin: 0;
}

/* Теги */
.note-tags {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    /* background: var(--note-tag-bg); */
    color: var(--accent-color);
}

.tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
}

.tag.design {
    background: rgba(255, 157, 0, 0.1);
    color: #ff9d00;
}

.add-note-btn-container {
    margin: 0px 5px 5px 5px;
}

.add-note-btn {
    width: 90%;
    background: rgba(var(--accent-color), 0);
    border: 1px dashed rgba(var(--accent-color), 0.4);
    color: var(--accent-color);
    padding: 1px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
}

.note-settings-btn {
    padding: 4px;
    border: 1px solid rgba(var(--accent-color), 0.3);
    border-radius: 6px;
    background: rgba(var(--accent-color), 0.1);
    color: var(--accent-color);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    font-family: Arial, sans-serif;
}

.note-settings-btn:hover {
    background: rgba(var(--accent-color), 0.2);
    border-color: var(--accent-color);
}

.add-note-btn:hover {
    background: rgba(var(--accent-color), 0.1);
    border-style: solid;
}

.add-note-btn:active {
    transform: translateY(0);
}

.plus-icon {
    font-size: 18px;
    font-weight: 300;
    transition: transform 0.2s;
}

.add-note-btn:hover .plus-icon {
    transform: scale(1.1);
}

.ball-note-1 {
    width: 160px;
    height: 260px;
    background: rgba(var(--accent-color-back), 0.1); /* Розовый неоновый цвет */
    filter: blur(50px);
    top: 10%;
    left: 10%;
}

/* Создание заметки */
.notes-actions-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.note-input {
    display: none;
    font-size: 12px;
    padding: 8px;
    transition: all 0.3s;
    width: calc(95%);
    height: 90px;
    border: 1px solid rgba(var(--accent-color), 0.3);
    border-radius: 6px;
    background: rgba(var(--accent-color), 0.1);
    color: var(--accent-color);
    overflow-y: auto;
    resize: none;
}

.note-input:focus {
    outline: none; /* Убирает стандартную браузерную обводку */
    border: 1px solid rgba(var(--accent-color), 0.3); /* Можно оставить текущий бордер или изменить прозрачность */
}

.note-input.active {
    display: block;
}

#addNoteToggle.save-mode {
    background: rgba(var(--accent-color), 0.2);
    border-style: solid;
}

#addNoteToggle.save-mode .plus-icon {
    display: none;
}

.note-input::-webkit-scrollbar {
    width: 2px;
}

.note-input::-webkit-scrollbar-track {
    background: rgba(var(--text-color), 0.1);
    border-radius: 3px;
}

.note-input::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 3px;
}

/* Модальное окно */
.note-container {
    display: flex;
    width: 95%;
    height: 90%;
}

.note-first-container {
    margin: 5px;
    width: 50%;
    /* border: 1px solid green; */
}

.note-second-container {
    margin: 5px;
    width: 50%;
    /* border: 1px solid green; */
}

.note-form {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.note-title-div {
    width: 25%;
}

.note-title-input {
    padding: 8px 12px;
    border: 1px solid rgba(var(--accent-color), 0.3);
    border-radius: 6px;
    background: transparent;
    color: var(--text-color);
    font-size: 12px;
    width: 90%;
}

.note-title-input:focus {
    outline: none;
    /* Убирает стандартную браузерную обводку */
}

.note-text-div {
    display: flex;
    width: 50%;
    justify-content: center;
}

.note-text-input {
    padding: 8px 14px;
    border: 1px solid rgba(var(--accent-color), 0.3);
    border-radius: 6px;
    background: transparent;
    color: var(--text-color);
    font-size: 12px;
    width: 90%;
}

.note-text-input:focus {
    outline: none;
    /* Убирает стандартную браузерную обводку */
}

.note-add-div {
    width: 20%;
}

.note-add-btn {
    padding: 8px 12px;
    border: 1px solid rgba(var(--accent-color), 0.3);
    border-radius: 6px;
    background: rgba(var(--accent-color), 0.1);
    color: var(--text-color);
    cursor: pointer;
    height: 100%;
    width: 100%;
}

.list-group-notes {
    max-height: 45vh;
    width: 100%;
    padding: 0px;
    overflow-y: hidden;
    scrollbar-gutter: stable;
}

.list-group-notes:hover {
    overflow-y: auto;
}

.list-group-notes::-webkit-scrollbar {
    width: 2px;
}

.list-group-notes::-webkit-scrollbar-track {
    background: rgba(var(--text-color), 0.1);
    border-radius: 3px;
}

.list-group-notes::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 3px;
}

.list-group-note {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(var(--text-color), 0.03);
    border: 1px solid rgba(var(--accent-color), 0.1);
    margin-top: 8px;
    border-radius: 8px;
    width: 92%;
}

.list-note-title {
    color: var(--text-color);
    width: 20%;
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
}

.list-note-text {
    color: rgba(var(--accent-color));
    /* color: var(--text-color); */
    width: 60%;
    font-size: 10px;
}

.note-delete-btn {
    padding: 8px 12px;
    border: 1px solid rgba(var(--accent-color), 0.3);
    border-radius: 6px;
    background: rgba(var(--accent-color), 0.1);
    color: var(--text-color);
    cursor: pointer;
    height: 100%;
}

/* .trash-icon {
    width: 16px;
    height: 16px;
    filter: invert(0.8);
    transition: all 0.3s ease;
} */

/* Новости цитат */

/* Общие стили блока */
.note-news {
    /* border: 1px solid white; */
    margin-left: 40px;
    margin-top: 0px;
    padding: 15px;
    height: 100%;
    width: 100%;
}

/* Шапка блока */
.note-header-news {
    /* position: relative; */
    margin-bottom: 20px;
    margin-top: 0px;
    color: var(--text-color);
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}

.note-decor-line {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(var(--accent-color), 0.4) 50%, 
        transparent 100%);
    margin: 10px 0;
}

/* Список советов */
.note-list {
    overflow-y: hidden;
    scrollbar-gutter: stable;
    width: 100%;
    height: 41vh;
}

.note-list:hover {
    overflow-y: auto;
}

/* Кастомизация скролла */
.note-list::-webkit-scrollbar {
    width: 2px;
}

.note-list::-webkit-scrollbar-thumb {
    background: rgba(var(--accent-color), 0.5);
    border-radius: 3px;
}

.note-list::-webkit-scrollbar-track {
    background: rgba(var(--text-color), 0.05);
}

/* Карточка совета */
.note-card-news {
    background: rgba(var(--primary-color), 0.1);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.note-card-news:hover {
    background: rgba(var(--primary-color), 0.15);
}

.note-icon-news {
    font-size: 1.6em;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.note-content-news h4 {
    color: var(--success-light);
    margin: 0 0 5px 0;
    font-size: 12px;
}

.note-content-news p {
    color: var(--text-color);
    /* color: rgba(var(--text-color), 0.8); */
    margin: 0;
    font-size: 10px;
    line-height: 1.4;
}

/* Чекбокс */
/* Скрываем нативный чекбокс */
.note-check {
    width: 18px;
    height: 18px;
    accent-color: var(--success-light);
    cursor: pointer;
}

/* Мобильные стили для заметок */
@media (max-width: 768px) {
    #notesModal .modal-content {
        width: 95vw !important;
        max-width: 100vw;
        height: 90vh !important;
        margin: 5vh auto !important;
        padding: 10px;
        box-sizing: border-box;
    }

    .note-container {
        flex-direction: column;
        width: 100%;
        height: auto;
    }

    .note-first-container,
    .note-second-container {
        width: 100% !important;
        margin: 5px 0 !important;
    }

    /* Стили для списка заметок */
    .notes-container {
        flex-direction: column;
        gap: 8px;
    }

    .note-card {
        flex: 1 1 auto;
        width: 100%;
    }

    /* Стили для формы заметок */
    .list-group-notes {
        max-height: 30vh;
        width: 100%;
    }

    .list-group-note {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
        width: 93%;
    }

    .list-note-title,
    .list-note-text {
        width: 100% !important;
        margin-bottom: 5px;
    }

    /* Стили для рекомендаций */
    .note-news {
        margin-left: 0;
        padding: 10px;
    }

    .note-list {
        /* height: 30vh; */
        margin-right: 15px;
    }

    .note-card-news {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
    }

    .note-icon-news {
        margin-bottom: 8px;
    }

    /* Адаптация формы добавления заметок */
    .note-form {
        flex-direction: column;
        gap: 10px;
    }

    .note-title-div,
    .note-text-div,
    .note-add-div {
        width: 100% !important;
    }

    .note-title-input,
    .note-text-input {
        width: 100% !important;
    }

    .note-add-btn {
        width: 100%;
        padding: 10px;
    }

    /* Кнопка добавления заметки */
    .add-note-btn {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }

    /* Поля ввода */
    .note-input {
        width: 100% !important;
        height: 120px;
    }
}