/* ===== EISENHOWER MATRIX - PREMIUM STYLE ===== */

/* Контейнер - полный экран */
.eisenhower-container {
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    overflow: hidden;
}

/* Заголовок - скругленный со всех сторон */
.eisenhower-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: var(--bg-surface);
    border-bottom: 2px solid var(--border-color);
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    margin: 12px 12px 0 12px;
}

.eisenhower-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.eisenhower-header h2 i {
    color: var(--accent-blue);
}

.eisenhower-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
}

.btn-icon:hover {
    background: var(--bg-hover);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: translateY(-1px);
}

/* Стиль для кнопки создания коллекции */
.btn-create-collection {
    background: linear-gradient(135deg, var(--accent-blue), #8b5cf6);
    border-color: transparent;
    color: white;
}

.btn-create-collection:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    color: white;
}

/* Матрица 2x2 */
.eisenhower-matrix {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: transparent;
    padding: 12px;
    min-height: 0;
    height: auto;
}

.eisenhower-row {
    display: flex;
    gap: 12px;
    flex: 1;
    min-height: 0;
    height: calc(50% - 6px);
}

/* Квадранты - с полупрозрачными цветами и скругленными углами */
.eisenhower-quadrant {
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: 16px;
    position: relative;
    height: 100%;
}

/* Фоновые цвета квадрантов */
.eisenhower-quadrant.quadrant_1 {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.eisenhower-quadrant.quadrant_2 {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.eisenhower-quadrant.quadrant_3 {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.eisenhower-quadrant.quadrant_4 {
    background: rgba(107, 114, 128, 0.08);
    border: 1px solid rgba(107, 114, 128, 0.25);
}

/* Эффект при наведении для drag&drop */
.eisenhower-quadrant.drag-over {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--accent-blue);
    box-shadow: inset 0 0 0 2px var(--accent-blue), 0 4px 12px rgba(59, 130, 246, 0.2);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* Заголовок квадранта */
.quadrant-header {
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    border-bottom: 2px solid;
    background: rgba(0, 0, 0, 0.02);
}

/* Цвета границ заголовков под цвет квадранта */
.eisenhower-quadrant.quadrant_1 .quadrant-header {
    border-bottom-color: rgba(239, 68, 68, 0.4);
}

.eisenhower-quadrant.quadrant_2 .quadrant-header {
    border-bottom-color: rgba(16, 185, 129, 0.4);
}

.eisenhower-quadrant.quadrant_3 .quadrant-header {
    border-bottom-color: rgba(245, 158, 11, 0.4);
}

.eisenhower-quadrant.quadrant_4 .quadrant-header {
    border-bottom-color: rgba(107, 114, 128, 0.4);
}

.quadrant-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

.quadrant-emoji {
    font-size: 14px;
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
    font-style: normal;
    font-weight: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    width: 20px;
    height: 20px;
}

.quadrant-title h4 {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: var(--text-primary);
}

.quadrant-count {
    font-size: 10px;
    background: var(--bg-primary);
    padding: 2px 6px;
    border-radius: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Контейнер пространств */
.quadrant-spaces {
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-content: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
}

/* Стилизация скролла */
.quadrant-spaces::-webkit-scrollbar {
    width: 5px;
}

.quadrant-spaces::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 3px;
}

.quadrant-spaces::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 3px;
}

.quadrant-spaces::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue-dark);
}

/* Пустой квадрант */
.empty-quadrant-hint {
    width: 100%;
    text-align: center;
    padding: 24px 12px;
    color: var(--text-tertiary);
    border: 1.5px dashed var(--border-color);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.02);
}

.empty-quadrant-hint i {
    font-size: 20px;
    margin-bottom: 6px;
    display: block;
    opacity: 0.6;
}

.empty-quadrant-hint span {
    font-size: 10px;
}

/* Цветные иконки для квадрантов */
.text-red { color: #ef4444; }
.text-green { color: #10b981; }
.text-orange { color: #f59e0b; }
.text-gray { color: #6b7280; }

/* ========== ПРЕМИУМ КАРТОЧКИ ПРОСТРАНСТВ ========== */

.premium-card {
    position: relative;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-surface));
    border-radius: 20px;
    padding: 16px 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    min-width: 180px;
    max-width: 220px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Glow эффект */
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--card-glow, rgba(59, 130, 246, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 20px;
    filter: blur(20px);
}

.premium-card:hover .card-glow {
    opacity: 1;
}

.premium-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Заголовок карточки */
.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.card-icon-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-blue), #8b5cf6);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card-emoji {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.card-icon-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    animation: pulse 2s infinite;
}

.card-title-section {
    flex: 1;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.card-type {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.card-type.system {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.card-type.custom {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

/* Статистика с круговыми диаграммами */
.card-stats-grid {
    display: flex;
    justify-content: space-around;
    gap: 16px;
    margin-bottom: 16px;
}

.stat-circle {
    text-align: center;
    flex: 1;
}

.circular-chart {
    width: 60px;
    height: 60px;
    display: block;
    margin: 0 auto 8px;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 2.8;
}

.circle {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke: var(--accent-blue);
    transition: stroke-dasharray 0.5s ease;
}

.eisenhower-quadrant.quadrant_1 .circle {
    stroke: #ef4444;
}

.eisenhower-quadrant.quadrant_2 .circle {
    stroke: #10b981;
}

.eisenhower-quadrant.quadrant_3 .circle {
    stroke: #f59e0b;
}

.eisenhower-quadrant.quadrant_4 .circle {
    stroke: #6b7280;
}

.percentage {
    fill: var(--text-primary);
    font-size: 5px;
    text-anchor: middle;
    dominant-baseline: middle;
    font-weight: bold;
}

.stat-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    color: var(--text-secondary);
}

.stat-label i {
    font-size: 12px;
    margin-bottom: 2px;
}

.stat-label strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Футер карточки */
.card-footer {
    margin-top: 8px;
}

.activity-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.activity-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), #8b5cf6);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.eisenhower-quadrant.quadrant_1 .activity-bar-fill {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.eisenhower-quadrant.quadrant_2 .activity-bar-fill {
    background: linear-gradient(90deg, #10b981, #059669);
}

.eisenhower-quadrant.quadrant_3 .activity-bar-fill {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.eisenhower-quadrant.quadrant_4 .activity-bar-fill {
    background: linear-gradient(90deg, #6b7280, #4b5563);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

.collections-count {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}

.collections-count i {
    font-size: 12px;
    color: #f59e0b;
}

.activity-level {
    display: flex;
    align-items: center;
    gap: 6px;
}

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.activity-dot.high {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

.activity-dot.medium {
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
}

.activity-dot.low {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

/* Подсказка при наведении */
.card-hint {
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 10px;
    padding: 6px;
    background: var(--bg-surface);
    border-radius: 8px;
    transition: bottom 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.premium-card:hover .card-hint {
    bottom: 8px;
    opacity: 1;
}

/* Анимации */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* ===== ТУЛТИПЫ (ПРИ НАВЕДЕНИИ) ===== */
.tooltip {
    position: fixed;
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    font-size: 11px;
    z-index: 99999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    max-width: 240px;
    line-height: 1.4;
}

.tooltip.show {
    opacity: 1;
    visibility: visible;
}

.tooltip::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 16px;
    width: 10px;
    height: 10px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transform: rotate(45deg);
}

/* ===== ДЕТАЛЬНЫЙ ВИД ===== */
.space-detail-view, .notes-detail-view {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    overflow: hidden;
}

.detail-header {
    padding: 16px 24px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    flex-shrink: 0;
    border-radius: 20px 20px 0 0;
    margin: 12px 12px 0 12px;
}

.btn-back {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    transition: all 0.2s;
}

.btn-back:hover {
    background: var(--bg-hover);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: translateX(-2px);
}

.detail-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-emoji {
    font-size: 28px;
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
    font-style: normal;
    font-weight: normal;
    display: inline-block;
    vertical-align: middle;
}

.detail-title h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.detail-badge {
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 16px;
    background: var(--bg-primary);
    color: var(--text-secondary);
}

.detail-stats {
    display: flex;
    gap: 16px;
    margin-left: auto;
}

.detail-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-secondary);
}

.detail-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.detail-actions .btn-icon {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
}

.detail-actions .btn-icon:hover {
    background: var(--bg-hover);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: translateY(-1px);
}

/* Сетка коллекций */
.detail-collections, .notes-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.collection-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.collection-card:hover {
    transform: translateY(-2px);
    border-color: #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
}

.collection-card-icon {
    width: 40px;
    height: 40px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #f59e0b;
}

.collection-card-info {
    flex: 1;
}

.collection-card-info h4 {
    margin: 0 0 3px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.collection-card-info p {
    margin: 0;
    font-size: 10px;
    color: var(--text-secondary);
}

.collection-card-arrow {
    color: var(--text-tertiary);
    transition: transform 0.2s;
    font-size: 12px;
}

.collection-card:hover .collection-card-arrow {
    transform: translateX(4px);
    color: #f59e0b;
}

/* Заметки */
.notes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.note-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.note-card:hover {
    border-color: var(--accent-blue);
    transform: translateX(4px);
    background: var(--bg-hover);
}

.note-content {
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 10px;
    font-size: 12px;
    word-break: break-word;
}

.note-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 9px;
    color: var(--text-secondary);
}

.note-date, .note-tags {
    display: flex;
    align-items: center;
    gap: 4px;
}

.note-tags {
    background: var(--bg-primary);
    padding: 2px 6px;
    border-radius: 10px;
}

/* Пустые состояния */
.empty-collections, .empty-notes {
    text-align: center;
    padding: 50px 24px;
    color: var(--text-tertiary);
}

.empty-collections i, .empty-notes i {
    margin-bottom: 14px;
    opacity: 0.5;
}

.empty-collections h3, .empty-notes h3 {
    margin-bottom: 6px;
    font-size: 15px;
    color: var(--text-secondary);
}

.empty-collections code, .empty-notes code {
    background: var(--bg-surface);
    padding: 3px 6px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 11px;
    color: var(--accent-blue);
}

/* Загрузка */
.loading-container, .loading-collections, .loading-notes {
    text-align: center;
    padding: 50px 24px;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 14px;
}

.loading-spinner.small {
    width: 24px;
    height: 24px;
    margin: 0 auto 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Ошибки */
.error-container, .error-collections, .error-notes {
    text-align: center;
    padding: 50px 24px;
    color: #ef4444;
}

.error-container i, .error-collections i, .error-notes i {
    font-size: 36px;
    margin-bottom: 14px;
    opacity: 0.7;
}

/* Кнопки */
.btn-primary {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary:hover {
    background: var(--accent-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.25);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: var(--bg-hover);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.btn-secondary {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-color);
}

/* Модальные окна */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    animation: fadeIn 0.2s ease;
}

.modal {
    background: var(--bg-surface);
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: color 0.2s;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.modal-close:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.modal-content {
    padding: 22px;
    overflow-y: auto;
    flex: 1;
    line-height: 1.5;
}

.modal-content h3 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-content p {
    margin: 0 0 12px 0;
    font-size: 12px;
    color: var(--text-secondary);
}

.modal-content code {
    background: var(--bg-primary);
    padding: 4px 8px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 11px;
    color: var(--accent-blue);
}

.modal-content ul {
    margin: 8px 0 12px 0;
    padding-left: 20px;
}

.modal-content li {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 4px 0;
}

.modal-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

hr {
    margin: 14px 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптация под мобильные */
@media (max-width: 768px) {
    .eisenhower-header {
        padding: 10px 16px;
        border-radius: 16px;
        margin: 8px 8px 0 8px;
    }
    
    .eisenhower-header h2 {
        font-size: 1.1rem;
    }
    
    .btn-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .eisenhower-matrix {
        padding: 8px;
        gap: 8px;
    }
    
    .eisenhower-row {
        gap: 8px;
    }
    
    .quadrant-header {
        padding: 8px 10px;
    }
    
    .quadrant-title h4 {
        font-size: 10px;
    }
    
    .quadrant-emoji {
        font-size: 12px;
        width: 18px;
        height: 18px;
    }
    
    .quadrant-count {
        font-size: 9px;
        padding: 1px 5px;
    }
    
    .quadrant-spaces {
        padding: 8px;
        gap: 8px;
    }
    
    .premium-card {
        min-width: 150px;
        max-width: 180px;
        padding: 12px;
    }
    
    .card-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .card-emoji {
        font-size: 22px;
    }
    
    .card-title {
        font-size: 13px;
    }
    
    .circular-chart {
        width: 50px;
        height: 50px;
    }
    
    .stat-label strong {
        font-size: 12px;
    }
    
    .stat-label i {
        font-size: 10px;
    }
    
    .card-meta {
        font-size: 9px;
    }
    
    .detail-header {
        padding: 12px 16px;
        margin: 8px 8px 0 8px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .detail-stats {
        margin-left: 0;
    }
    
    .detail-actions {
        margin-left: 0;
    }
    
    .detail-title h2 {
        font-size: 18px;
    }
    
    .detail-emoji {
        font-size: 24px;
    }
    
    .detail-collections, .notes-container {
        padding: 12px 16px;
    }
    
    .collections-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .modal {
        width: 95vw;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 14px 18px;
    }
    
    .modal-content {
        padding: 16px;
    }
    
    .modal-footer {
        padding: 12px 18px;
    }
}

/* Дополнительные улучшения для средних экранов */
@media (min-width: 769px) and (max-width: 1024px) {
    .eisenhower-matrix {
        gap: 10px;
    }
    
    .eisenhower-row {
        gap: 10px;
    }
    
    .premium-card {
        min-width: 160px;
        max-width: 200px;
    }
}

/* Иконка подсказки процентов */
.stat-circle {
    position: relative;
}

.stat-percent-info {
    position: absolute;
    top: -8px;
    right: -8px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.stat-circle:hover .stat-percent-info {
    opacity: 1;
}

.stat-percent-info i {
    font-size: 14px;
    color: var(--accent-blue);
    background: var(--bg-card);
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-percent-info i:hover {
    color: #8b5cf6;
    transform: scale(1.1);
}

.info-note {
    display: flex;
    align-items: center;
}