.user-note-icon {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 5px;
    cursor: pointer;
    font-size: 16px !important;
    color: #666;
    
    background: #2D84BA;
    border-radius: 50px;
    transition: all .3s;
}

.user-note-icon:hover {
    background: #ff6b6b;
}

/* Файл: notes-modal.css */

/* Модальное окно */
.notes-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notes-modal.show {
    display: block;
    opacity: 1;
}

/* Контент модального окна */
.notes-modal-content {
    position: relative;
    background-color: #fff;
    margin: 50px auto;
    width: 90%;
    max-width: 700px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease;
    max-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Заголовок */
.notes-modal-header {
    padding: 20px 25px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #2D84BA 0%, #239de8 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.notes-modal-header h2 {
    margin: 0;
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 600;
}

.notes-modal-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    line-height: 1;
}

.notes-modal-close:hover {
    opacity: 1;
}

/* Тело модального окна */
.notes-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex-grow: 1;
}

/* Список заметок */
.notes-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background: #fafafa;
}

/* Пустой список */
.notes-empty {
    text-align: center;
    color: #999;
    padding: 30px;
    font-style: italic;
}

/* Элемент заметки */
.note-item {
    margin-bottom: 10px;
    padding: 12px;
    background: #f1f1f1;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: background-color 0.2s;
}


.note-item:hover {
    background-color: #f5f5f5;
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.note-curator {
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
}

.note-mood {
    font-size: 1.6rem;
    margin-right: 5px;
}

.note-date {
    color: #888;
    font-size: 12px;
}

.note-text {
    color: #444;
    line-height: 1.5;
    font-size: 14px;
    word-wrap: break-word;
}

/* Форма добавления заметки */
.notes-add-form {
    background: #fff;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.notes-add-form h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

/* Селектор настроения */
.notes-mood-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 8px;
}

.mood-option {
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 8px;
    transition: all 0.2s;
    opacity: 0.6;
    filter: grayscale(0.5);
}

.mood-option:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.2);
    background: #f0f0f0;
}

.mood-option.selected {
    opacity: 1;
    filter: grayscale(0);
    background: #239de8;
    transform: scale(1.1);

}

/* Текстовое поле */
#newNoteText {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

#newNoteText:focus {
    outline: none;
    border-color: #239de8;
}

/* Кнопка сохранения */
.notes-save-btn {
    background: linear-gradient(135deg, #2D84BA 0%, #239de8 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.notes-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(14,122,219,0.4);
}

.notes-save-btn:active {
    transform: translateY(0);
}

/* Индикатор загрузки */
.notes-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    z-index: 10000;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Скроллбар для списка заметок */
.notes-list::-webkit-scrollbar {
    width: 8px;
}

.notes-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.notes-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.notes-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Адаптивность */
@media (max-width: 768px) {
    .notes-modal-content {
        margin: 20px;
        width: auto;
        max-height: calc(100vh - 40px);
    }
    
    .notes-modal-header h2 {
        font-size: 1.2rem;
    }
    
    .notes-modal-body {
        padding: 15px;
    }
    
    .notes-mood-selector {
        gap: 5px;
    }
    
    .mood-option {
        font-size: 1.2rem;
    }
}


/* Уведомления */
.notes-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10001;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notes-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notes-notification-success {
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%);
}

.notes-notification-info {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
}

.notes-notification-error {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
}

/* Анимация новой заметки */
@keyframes highlightNew {
    0% { background-color: #e8f5e9; }
    100% { background-color: transparent; }
}

.note-item.new-note {
    animation: highlightNew 2s ease-out;
}

/* Состояние кнопки при сохранении */
.notes-save-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Стили для редактируемых заметок */
.editable-note {
    border-left: 3px solid #ff9800;
    position: relative;
}

.edit-badge {
    font-size: 12px;
    margin-left: 5px;
    opacity: 0.7;
    cursor: help;
}

.edit-locked {
    font-size: 0.9rem;
    margin-left: 5px;
    opacity: 0.5;
    cursor: help;
}

.note-edit-actions {
    margin-top: 10px;
    text-align: right;
}

.edit-note-btn {
    background: none;
    border: 1px solid #ff9800;
    color: #ff9800;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-note-btn:hover {
    background: #ff9800;
    color: white;
}

/* Подмодальное окно редактирования */
.notes-submodal {
    display: none;
    position: fixed;
    z-index: 10010;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notes-submodal.show {
    display: block;
    opacity: 1;
}

.notes-submodal-content {
    position: relative;
    background-color: #fff;
    margin: 15% auto;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

.notes-submodal-header {
    padding: 15px 20px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.notes-submodal-header h3 {
    margin: 0;
    font-size: 16px;
}

.notes-submodal-close {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.notes-submodal-close:hover {
    opacity: 1;
}

.notes-submodal-body {
    padding: 20px;
}

#editNoteText {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    margin: 15px 0;
    box-sizing: border-box;
}

#editNoteText:focus {
    outline: none;
    border-color: #ff9800;
}

.edit-note-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.edit-cancel-btn {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-cancel-btn:hover {
    background: #e0e0e0;
}

.edit-save-btn {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.edit-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
}

.edit-save-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Стили для ссылки на куратора */
.curator-link {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.curator-link:hover {
    color: #239de8;
    text-decoration: underline;
}

.note-curator {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}