/* ===== БАЗОВЫЕ СТИЛИ ДЛЯ ПРИЛОЖЕНИЯ ===== */
:root {
    --bg-primary: #0F1117;
    --bg-secondary: #1A1D27;
    --bg-surface: rgba(26, 29, 39, 0.7);
    --text-primary: #E2E8F0;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --accent-blue: #3B82F6;
    --accent-green: #10B981;
    --accent-orange: #F59E0B;
    --accent-purple: #8B5CF6;
    --accent-red: #EF4444;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes tooltipFadeIn {
    from { 
        opacity: 0; 
        transform: translate(-50%, -90%);
    }
    to { 
        opacity: 1; 
        transform: translate(-50%, -100%);
    }
}

.charts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .charts-container {
        grid-template-columns: 1fr;
    }
}

.chart-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.year-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.years-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.year-button {
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.year-button:hover {
    background: var(--bg-surface);
    border-color: var(--accent-blue);
}

.year-button.active {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

.year-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.year-stat-card {
    text-align: center;
    padding: 1rem;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.year-stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.year-stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== УЛУЧШЕНИЯ ДЛЯ ССЫЛОК ===== */

/* Гарантируем, что ссылки получают события */
.note-content .note-link-container a,
.note-content .note-link {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 10;
}

/* Убеждаемся, что контейнер не блокирует клики */
.note-link-container {
    pointer-events: auto !important;
    position: relative;
    z-index: 5;
}

/* Явно разрешаем клики по ссылкам */
.note-content a {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Визуальное улучшение при наведении */
.note-content .note-link:hover {
    text-decoration: underline;
    opacity: 0.9;
}