/* css/components/stratosfera.css - ФИНАЛЬНАЯ ВЕРСИЯ */

/* === ОСНОВНОЙ КОНТЕЙНЕР === */
.stratosfera-container {
    position: fixed;
    top: 0;
    left: 250px;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1a1f35 100%);
    overflow: hidden;
    padding: 0;
    margin: 0;
    z-index: 10;
}

/* === МИНИМАЛИСТИЧНЫЙ ЗАГОЛОВОК === */
.stratosfera-header {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(15, 17, 23, 0.98) 0%, rgba(26, 31, 53, 0.95) 100%);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Верхняя строка: Заголовок + Обновить */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stratosfera-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stratosfera-title i {
    color: #10B981;
    font-size: 1.6rem;
}

/* КНОПКА ОБНОВИТЬ - чистый минимализм */
.refresh-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.refresh-btn:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
    transform: translateY(-1px);
}

.refresh-btn:hover i {
    animation: spin 0.6s ease-in-out;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.refresh-btn.loading {
    opacity: 0.7;
    cursor: wait;
}

.refresh-btn.loading i {
    animation: spin 1s infinite linear;
}

/* ПАНЕЛЬ ФИЛЬТРОВ - горизонтальная линия */
.controls-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

/* ЛЕВАЯ ГРУППА - все элементы в одну строку */
.controls-left {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex: 1;
    min-width: 0;
}

/* ПОИСК - компактный */
.search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
    flex: 1;
    max-width: 280px;
    min-width: 200px;
    transition: all 0.2s;
}

.search-box:focus-within {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.search-box i {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.search-box input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 400;
    width: 100%;
    outline: none;
    padding: 0;
}

.search-box input::placeholder {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

/* ФИЛЬТРЫ - одинаковой ширины */
.form-select {
    padding: 0.5rem 0.75rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 140px;
    height: 36px;
}

.form-select:hover {
    border-color: var(--accent-blue);
    background: var(--bg-secondary);
}

.form-select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* КНОПКА СИСТЕМНЫХ - минималистичная */
.toggle-system-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    height: 36px;
    white-space: nowrap;
}

.toggle-system-btn:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.05);
}

.toggle-system-btn.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.toggle-system-btn i {
    font-size: 0.8rem;
}

/* === ОСНОВНОЙ КОНТЕНТ === */
.stratosfera-content {
    display: flex;
    flex: 1;
    position: relative;
    overflow: hidden;
    height: 100%;
}

/* === ХОЛСТ ДЛЯ ОБЛАКОВ === */
.stratosfera-canvas {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: 
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 40%),
        linear-gradient(135deg, var(--bg-primary) 0%, #1a1f35 100%);
}

/* === ПРАВАЯ ПАНЕЛЬ === */
.stratosfera-sidebar {
    width: 320px;
    min-width: 280px;
    max-width: 400px;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-color);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
    height: 100%;
    overflow: hidden;
}

/* РЕСАЙЗЕР */
.resizer-handle {
    position: absolute;
    left: -5px;
    top: 0;
    width: 10px;
    height: 100%;
    cursor: col-resize;
    z-index: 1000;
    background: transparent;
}

.resizer-handle:hover::after,
.resizer-handle.dragging::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60px;
    background: var(--accent-blue);
    border-radius: 2px;
}

/* КОНТЕЙНЕР СКРОЛЛА */
.sidebar-scroll-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
    margin-right: -0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-height: 0;
    scroll-behavior: smooth;
}

.sidebar-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.sidebar-scroll-container::-webkit-scrollbar-track {
    background: transparent;
    margin: 4px 0;
}

.sidebar-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

/* === NOTION-LEVEL СЕКЦИИ === */
.notion-level-1,
.notion-level-2,
.notion-level-3,
.notion-level-4 {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: var(--bg-surface);
    overflow: hidden;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.notion-level-1 {
    border-left: 4px solid rgba(59, 130, 246, 0.8);
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.03) 0%, 
        rgba(59, 130, 246, 0.01) 100%);
}

.notion-level-2 {
    border-left: 4px solid rgba(16, 185, 129, 0.8);
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.03) 0%, 
        rgba(16, 185, 129, 0.01) 100%);
}

.notion-level-3 {
    border-left: 4px solid rgba(245, 158, 11, 0.8);
    background: linear-gradient(135deg, 
        rgba(245, 158, 11, 0.03) 0%, 
        rgba(245, 158, 11, 0.01) 100%);
}

.notion-level-4 {
    border-left: 4px solid rgba(168, 85, 247, 0.8);
    background: linear-gradient(135deg, 
        rgba(168, 85, 247, 0.03) 0%, 
        rgba(168, 85, 247, 0.01) 100%);
}

/* Заголовки секций */
.notion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

.notion-header:hover {
    background: rgba(255, 255, 255, 0.04);
}

.notion-header .section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.notion-count {
    margin-left: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
}

/* Контент */
.notion-content {
    padding: 1rem;
}

.notion-empty {
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--text-secondary);
}

.notion-empty i {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-tertiary);
    opacity: 0.4;
}

/* Избранные */
.favorites-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
    padding: 0.5rem 0.25rem 0.5rem 0;
    max-height: 250px;
}

.favorite-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.favorite-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(2px);
}

.favorite-item.highlighted {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-blue);
}

.favorite-emoji {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.05);
}

.favorite-info {
    flex: 1;
    min-width: 0;
}

.favorite-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
}

.favorite-stats {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.notion-stat {
    text-align: center;
    padding: 1rem 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: all 0.2s;
}

.notion-stat:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

.notion-stat .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.notion-stat .stat-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Быстрые действия */
.notion-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.notion-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    min-height: 80px;
}

.notion-action-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.notion-action-btn i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.notion-action-btn:hover i {
    transform: scale(1.2);
}

.action-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.action-hint {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    opacity: 0.7;
    line-height: 1.2;
}

.notion-action-btn:hover .action-hint {
    color: var(--accent-blue);
    opacity: 1;
}

/* Редактирование избранного */
.remove-favorite-btn {
    opacity: 0;
    transition: opacity 0.2s;
    color: var(--accent-red);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
}

.favorite-item:hover .remove-favorite-btn,
.editing-mode .remove-favorite-btn {
    opacity: 1;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 1400px) {
    .stratosfera-container {
        left: 200px;
    }
    
    .stratosfera-sidebar {
        width: 300px;
    }
}

@media (max-width: 1200px) {
    .controls-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .controls-left {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .search-box {
        max-width: none;
        min-width: auto;
    }
}

@media (max-width: 992px) {
    .stratosfera-container {
        position: relative;
        left: 0;
        height: 100vh;
    }
    
    .stratosfera-content {
        flex-direction: column;
        height: calc(100% - 96px);
    }
    
    .stratosfera-sidebar {
        width: 100% !important;
        height: 350px;
        max-height: 350px;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
    
    .resizer-handle {
        position: relative;
        left: 0;
        top: -4px;
        width: 100%;
        height: 8px;
        cursor: row-resize;
    }
    
    .resizer-handle:hover::after,
    .resizer-handle.dragging::after {
        left: 50%;
        top: 2px;
        transform: translateX(-50%);
        width: 60px;
        height: 4px;
    }
    
    .notion-actions {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .stratosfera-header {
        padding: 0.75rem 1rem;
    }
    
    .stratosfera-title {
        font-size: 1.25rem;
    }
    
    .controls-left {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .search-box,
    .form-select,
    .toggle-system-btn {
        width: 100%;
        max-width: none;
    }
    
    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .refresh-btn {
        align-self: stretch;
        justify-content: center;
    }
    
    .notion-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .stratosfera-sidebar {
        padding: 0.75rem;
    }
    
    .notion-header {
        padding: 0.5rem 0.75rem;
    }
    
    .notion-content {
        padding: 0.75rem;
    }
    
    .notion-action-btn {
        min-height: 70px;
        padding: 0.5rem 0.25rem;
    }
    
    .notion-action-btn i {
        font-size: 1.2rem;
    }
}

/* === АНИМАЦИИ === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes cloudFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* === ЗАГРУЗКА === */
.stratosfera-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 1.5rem;
    animation: fadeIn 0.3s ease-out;
}

.loading-cloud {
    font-size: 3rem;
    animation: cloudFloat 3s ease-in-out infinite;
}

/* === КОНТЕКСТНОЕ МЕНЮ === */
.cloud-context-menu {
    position: absolute;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    z-index: 10000;
    min-width: 180px;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.1s ease-out;
    overflow: hidden;
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.context-menu-item:last-child {
    border-bottom: none;
}

.context-menu-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
}

/* ФИКС ДЛЯ ФИЛЬТРОВ - ПОЛНАЯ ВИДИМОСТЬ ТЕКСТА */
.controls-left .form-select {
    padding: 0.5rem 0.75rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 140px;
    height: 38px; /* Увеличенная высота */
    line-height: 1.4; /* Улучшенный межстрочный интервал */
    overflow: visible !important; /* Гарантируем видимость текста */
    text-overflow: unset !important;
}

/* Убедимся, что опции тоже видны */
.controls-left .form-select option {
    background: var(--bg-surface);
    color: var(--text-primary);
    padding: 8px;
    font-size: 0.85rem;
}

/* ФИКС ДЛЯ ФИЛЬТРОВ */
.controls-left {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex: 1;
    min-width: 0;
}

/* ОБНОВЛЕННЫЙ СЕЛЕКТ */
.controls-left .form-select {
    padding: 0.5rem 0.75rem 0.5rem 0.75rem !important;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 150px;
    height: 38px;
    line-height: 1.5;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888888' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    padding-right: 2rem !important;
}

.controls-left .form-select:hover {
    border-color: var(--accent-blue);
    background-color: var(--bg-secondary);
}

.controls-left .form-select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* Улучшение опций в выпадающем списке */
.controls-left .form-select option {
    background: var(--bg-surface);
    color: var(--text-primary);
    padding: 10px;
    margin: 2px 0;
    border-radius: 4px;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .controls-left .form-select {
        width: 100%;
        min-width: unset;
    }
}

/* Кнопка переключения названий */
.toggle-names-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    height: 36px;
    white-space: nowrap;
}

.toggle-names-btn:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.05);
}

.toggle-names-btn.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* === БЛОК ВИЗУАЛИЗАЦИИ === */
.visualization-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.visualization-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    min-height: 70px;
    width: 100%;
}

.visualization-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: translateY(-2px);
}

.visualization-btn.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.visualization-btn i {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
    transition: all 0.3s;
}

.visualization-btn:hover i {
    transform: scale(1.1);
}

.visualization-btn span {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.btn-hint {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    opacity: 0.7;
    line-height: 1.2;
}

.visualization-btn:hover .btn-hint {
    color: var(--accent-blue);
    opacity: 1;
}

/* Оптимизация размеров существующих блоков */
.notion-content {
    padding: 0.875rem; /* Уменьшаем padding */
}

.notion-stat {
    padding: 0.75rem 0.5rem; /* Уменьшаем padding */
}

.notion-stat .stat-value {
    font-size: 1.3rem; /* Немного уменьшаем */
}

.notion-action-btn {
    min-height: 70px; /* Уменьшаем с 80px */
    padding: 0.6rem 0.25rem; /* Уменьшаем padding */
}

.notion-action-btn i {
    font-size: 1.3rem; /* Уменьшаем с 1.5rem */
}

/* === УРОВЕНЬ 4: ВИЗУАЛИЗАЦИЯ === */
.notion-level-4 {
    border-left: 4px solid rgba(168, 85, 247, 0.8);
    background: linear-gradient(135deg, 
        rgba(168, 85, 247, 0.03) 0%, 
        rgba(168, 85, 247, 0.01) 100%);
}

/* ЕДИНСТВЕННЫЙ КОНТРОЛ ВИЗУАЛИЗАЦИИ */
.visualization-single-control {
    padding: 0.25rem 0;
}

.visualization-single-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    width: 100%;
    border: none;
    outline: none;
}

.visualization-single-btn:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
    color: #A855F7;
    transform: translateY(-2px);
}

.visualization-single-btn.active {
    background: rgba(168, 85, 247, 0.15);
    border-color: #A855F7;
    color: #A855F7;
}

.visualization-single-btn i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    transition: all 0.3s;
}

.visualization-single-btn:hover i {
    transform: scale(1.1);
}

.visualization-single-btn .btn-text {
    flex: 1;
}

.visualization-single-btn .btn-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.visualization-single-btn .btn-hint {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    opacity: 0.7;
}

.visualization-single-btn.active .btn-hint {
    color: #A855F7;
    opacity: 1;
    font-weight: 500;
}

/* ОПТИМИЗАЦИЯ ВЫСОТЫ БЛОКОВ */
.notion-content {
    padding: 0.75rem;
}

.notion-stat {
    padding: 0.6rem 0.5rem;
}

.notion-stat .stat-value {
    font-size: 1.25rem;
}

.notion-action-btn {
    min-height: 65px;
    padding: 0.5rem 0.25rem;
}