
        :root {
            --primary: #4a7c59;
            --secondary: #d9b26c;
            --accent: #8e6e53;
            --light: #f8f3e9;
            --dark: #2c3e30;
            --text: #333333;
            --shadow: rgba(0,0,0,0.1);
            --family-font: 'Georgia', serif;
            --ui-font: 'Segoe UI', Tahoma, sans-serif;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: var(--ui-font);
            color: var(--text);
            background: var(--light);
            line-height: 1.6;
            padding: 2rem 0;
            max-width: 1440px;
            margin: 0 auto;
        }
        
        .container {
            width: 90%;
            max-width: 1400px;
            margin: 0 auto;
            padding: 2rem 0;
        }
        
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 0;
            margin-bottom: 2rem;
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .logo-icon {
            color: var(--primary);
            font-size: 2rem;
        }
        
        .logo-text {
            font-family: var(--family-font);
            font-size: 1.8rem;
            font-weight: bold;
            color: var(--dark);
        }
        
        .nav-user {
            display: flex;
            gap: 1.5rem;
            align-items: center;
        }
        
        .btn {
            padding: 0.75rem 1.5rem;
            border-radius: 4px;
            border: none;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        
        .btn-primary {
            background: var(--primary);
            color: white;
        }
        
        .btn-outline {
            background: transparent;
            border: 2px solid var(--primary);
            color: var(--primary);
        }
        
        .btn-icon {
            padding: 0.5rem;
            border-radius: 50%;
        }
        
        /* Tree Section */
        .tree-section {
            background: white;
            border-radius: 12px;
            box-shadow: 0 8px 24px var(--shadow);
            padding: 1.5rem;
            margin-bottom: 2rem;
            position: relative;
            min-height: 600px;
        }
        
        .tree-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
            gap: 1rem;
        }
        
        .tree-title {
            font-family: var(--family-font);
            font-size: 1.75rem;
            color: var(--dark);
        }
        
        .tree-controls {
            display: flex;
            gap: 12px;
        }
        
        .search-box {
            display: flex;
            border: 1px solid #ddd;
            border-radius: 4px;
            overflow: hidden;
            background: white;
        }
        
        .search-box input {
            border: none;
            padding: 0.5rem 1rem;
            width: 280px;
            outline: none;
        }
        
        #tree-container {
            width: 100%;
            height: 500px;
            border: 1px solid #eee;
            border-radius: 8px;
            overflow: hidden;
        }
        
        /* Person Card */
        .person-details {
            background: white;
            border-radius: 12px;
            box-shadow: 0 8px 24px var(--shadow);
            padding: 2rem;
            margin-bottom: 2rem;
            display: grid;
            grid-template-columns: 260px 1fr;
            gap: 2rem;
        }
        
        .person-photos {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        
        .main-photo {
            width: 100%;
            border-radius: 8px;
            aspect-ratio: 4/5;
            object-fit: cover;
        }
        
        .photo-thumbnails {
            display: flex;
            gap: 8px;
            overflow-x: auto;
            padding-bottom: 8px;
        }
        
        .thumbnail {
            width: 60px;
            height: 60px;
            border-radius: 4px;
            object-fit: cover;
            cursor: pointer;
        }
        
        .person-info {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }
        
        .person-header {
            padding-bottom: 1rem;
            border-bottom: 1px solid #eee;
        }
        
        .person-name {
            font-family: var(--family-font);
            font-size: 2rem;
            color: var(--dark);
            margin-bottom: 0.5rem;
        }
        
        .person-life {
            font-size: 1.1rem;
            color: var(--accent);
        }
        
        .info-section {
            margin-bottom: 1.5rem;
        }
        
        .section-title {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .bio-text {
            line-height: 1.8;
        }
        
        .relations {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
        }
        
        .relation-card {
            width: 180px;
            padding: 1rem;
            border-radius: 8px;
            background: var(--light);
            text-align: center;
            transition: transform 0.3s;
        }
        
        .relation-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 4px 8px var(--shadow);
        }
        
        .relation-type {
            color: var(--accent);
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
        }
        
        .relation-name {
            font-weight: 600;
            margin-bottom: 0.25rem;
        }
        
        .tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
        }
        
        .tag {
            background: var(--secondary);
            color: var(--dark);
            padding: 0.4rem 1rem;
            border-radius: 20px;
            font-size: 0.9rem;
            display: inline-flex;
            gap: 6px;
            align-items: center;
        }
        
        .media-wrapper {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            gap: 1rem;
        }
        
        .media-item {
            border: 1px solid #eee;
            border-radius: 8px;
            overflow: hidden;
            position: relative;
        }
        
        .media-item img {
            width: 100%;
            height: 140px;
            object-fit: cover;
        }
        
        .media-name {
            padding: 0.75rem;
            font-size: 0.9rem;
            text-align: center;
        }
        
        /* Blog Section */
        .blog-section {
            background: white;
            border-radius: 12px;
            box-shadow: 0 8px 24px var(--shadow);
            padding: 2rem;
            margin-bottom: 2rem;
        }
        
        .blog-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 1.5rem;
            align-items: center;
        }
        
        .blog-posts {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
            gap: 1.5rem;
        }
        
        .post-card {
            border: 1px solid #eee;
            border-radius: 8px;
            overflow: hidden;
        }
        
        .post-image {
            width: 100%;
            height: 180px;
            object-fit: cover;
        }
        
        .post-content {
            padding: 1.5rem;
        }
        
        .post-title {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 0.75rem;
        }
        
        .post-excerpt {
            color: #666;
            margin-bottom: 1rem;
        }
        
        .post-meta {
            display: flex;
            justify-content: space-between;
            color: var(--accent);
            font-size: 0.9rem;
        }
        
        /* Admin Panel */
        .admin-section {
            background: white;
            border-radius: 12px;
            box-shadow: 0 8px 24px var(--shadow);
            padding: 2rem;
            margin-top: 4rem;
        }
        
        .admin-header {
            margin-bottom: 2rem;
        }
        
        .admin-title {
            font-size: 1.8rem;
            color: var(--dark);
            display: flex;
            gap: 12px;
            align-items: center;
            margin-bottom: 0.5rem;
        }
        
        .admin-subtitle {
            color: #666;
        }
        
        .admin-tabs {
            display: flex;
            border-bottom: 2px solid #eee;
            margin-bottom: 2rem;
            gap: 2rem;
        }
        
        .tab {
            padding: 1rem 0;
            position: relative;
            cursor: pointer;
            font-weight: 600;
            color: #666;
        }
        
        .tab.active {
            color: var(--primary);
        }
        
        .tab.active::after {
            content: "";
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 100%;
            height: 2px;
            background: var(--primary);
        }
        
        /* Admin Forms */
        .admin-content {
            display: grid;
            grid-template-columns: 1fr 340px;
            gap: 2rem;
        }
        
        .form-column {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }
        
        .form-panel {
            background: var(--light);
            border-radius: 8px;
            padding: 1.5rem;
        }
        
        .form-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .form-title {
            font-size: 1.4rem;
            color: var(--dark);
        }
        
        .form-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1.5rem;
        }
        
        .photo-upload {
            width: 100%;
            height: 320px;
            background: #f1f1f1;
            border-radius: 8px;
            border: 2px dashed #ccc;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 1rem;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .photo-upload:hover {
            border-color: var(--primary);
            background: #e9f6ed;
        }
        
        .upload-icon {
            font-size: 3rem;
            color: #aaa;
        }
        
        .form-group {
            margin-bottom: 1.2rem;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 600;
        }
        
        .form-control {
            width: 100%;
            padding: 0.8rem;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-family: inherit;
            font-size: 1rem;
        }
        
        textarea.form-control {
            min-height: 120px;
            resize: vertical;
        }
        
        .form-divider {
            height: 1px;
            background: #eee;
            margin: 1.5rem 0;
        }
        
        /* Tag inputs */
        .tag-input {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            padding: 0.5rem;
            border: 1px solid #ddd;
            border-radius: 4px;
            min-height: 54px;
        }
        
        /* Media Section */
        .media-manage {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 1rem;
        }
        
        .media-manage-item {
            border: 1px solid #eee;
            border-radius: 8px;
            overflow: hidden;
            position: relative;
        }
        
        .media-manage-controls {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0,0,0,0.7);
            display: flex;
            justify-content: space-around;
            padding: 8px;
        }
        
        .media-icon {
            color: white;
            cursor: pointer;
        }
        
        /* Responsive Adjustments */
        @media (max-width: 1100px) {
            .admin-content {
                grid-template-columns: 1fr;
            }
        }
        
        @media (max-width: 768px) {
            .person-details {
                grid-template-columns: 1fr;
            }
            
            .form-grid {
                grid-template-columns: 1fr;
            }
            
            .blog-posts {
                grid-template-columns: 1fr;
            }
            
            .relations {
                flex-direction: column;
                align-items: center;
            }
            
            .relation-card {
                width: 100%;
                max-width: 300px;
            }
        }
        
        @media (max-width: 480px) {
            .tree-controls {
                flex-wrap: wrap;
            }
            
            .search-box input {
                width: 180px;
            }
            
            .nav-user {
                gap: 0.5rem;
            }
        }
        .auth-container {
          min-height: 100vh;
          display: flex;
          align-items: center;
          justify-content: center;
          background: var(--light);
          padding: 20px;
        }
    
        .auth-card {
          background: white;
          border-radius: 12px;
          box-shadow: 0 10px 30px rgba(0,0,0,0.2);
          padding: 40px;
          width: 100%;
          max-width: 400px;
        }
    
        .auth-header {
          text-align: center;
          margin-bottom: 30px;
        }
    
        .auth-logo {
          display: flex;
          align-items: center;
          justify-content: center;
          gap: 10px;
          margin-bottom: 10px;
        }
    
        .auth-logo .logo-icon {
          font-size: 2rem;
          color: #4a7c59;
        }
    
        .auth-logo .logo-text {
          font-size: 1.5rem;
          font-weight: bold;
          color: #2c3e50;
        }
    
        .auth-subtitle {
          color: #7f8c8d;
          font-size: 0.9rem;
        }
    
        .auth-tabs {
          display: flex;
          margin-bottom: 20px;
          border-bottom: 2px solid #ecf0f1;
        }
    
        .auth-tab {
          flex: 1;
          padding: 12px;
          text-align: center;
          cursor: pointer;
          border-bottom: 3px solid transparent;
          transition: all 0.3s ease;
        }
    
        .auth-tab.active {
          border-bottom-color: #4a7c59;
          color: #4a7c59;
          font-weight: bold;
        }
    
        .auth-form {
          display: none;
        }
    
        .auth-form.active {
          display: block;
        }
    
        .form-group {
          margin-bottom: 20px;
        }
    
        .form-group label {
          display: block;
          margin-bottom: 5px;
          font-weight: 500;
          color: #2c3e50;
        }
    
        .form-control {
          width: 100%;
          padding: 12px 15px;
          border: 2px solid #ecf0f1;
          border-radius: 8px;
          font-size: 14px;
          transition: border-color 0.3s ease;
          box-sizing: border-box;
        }
    
        .form-control:focus {
          outline: none;
          border-color: #4a7c59;
        }
    
        .btn-auth {
          width: 100%;
          padding: 12px;
          background: #4a7c59;
          color: white;
          border: none;
          border-radius: 8px;
          font-size: 16px;
          cursor: pointer;
          transition: background 0.3s ease;
        }
    
        .btn-auth:hover {
          background: #3a6c49;
        }
    
        .auth-footer {
          text-align: center;
          margin-top: 20px;
          padding-top: 20px;
          border-top: 1px solid #ecf0f1;
        }
    
        .auth-link {
          color: #4a7c59;
          text-decoration: none;
          cursor: pointer;
        }
    
        .auth-link:hover {
          text-decoration: underline;
        }
    
        .error-message {
          background: #e74c3c;
          color: white;
          padding: 10px;
          border-radius: 5px;
          margin-bottom: 15px;
          text-align: center;
          display: none;
        }
      /* Guest Welcome Styles */
/* Tree Controls Styles */
.tree-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 5px 15px;
    margin-right: 10px;
}

.search-box input {
    border: none;
    outline: none;
    padding: 8px;
    background: transparent;
    min-width: 200px;
}

.search-box input:focus {
    border: none;
    box-shadow: none;
}

.tree-controls .btn {
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tree-controls .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tree-controls {
        justify-content: center;
    }
    
    .search-box {
        order: 2;
        margin-right: 0;
        margin-top: 10px;
        width: 100%;
    }
    
    .search-box input {
        min-width: auto;
        width: 100%;
    }
    
    .tree-controls .btn {
        padding: 6px 10px;
    }
}
/* User Menu Styles */
.user-menu {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.user-menu:hover .user-dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown {
    display: block;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 150px;
    z-index: 1000;
    margin-top: 5px;
    
    /* Анимация для плавного появления */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    
    /* Задержка перед скрытием */
    transition-delay: 0.1s;
}

/* Контейнер для задержки закрытия */
.user-menu-container {
    position: relative;
    display: inline-block;
}

.user-menu-container:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}

/* Добавляем псевдо-элемент для увеличения области наведения */
.user-menu-container::after {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    bottom: -10px;
    left: -10px;
    z-index: 999;
}

.dropdown-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #2c3e50;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #4a7c59;
    padding-left: 20px;
}

.dropdown-item i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
    color: #7f8c8d;
}

.dropdown-item:hover i {
    color: #4a7c59;
}

/* Улучшенные стили для кнопки пользователя */
.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.user-menu-btn:hover {
    background: rgba(74, 124, 89, 0.1);
    border-color: #4a7c59;
}

.user-menu-btn i {
    font-size: 16px;
    color: #4a7c59;
}

.user-menu-btn span {
    font-weight: 500;
    color: #2c3e50;
}

/* Анимация появления стрелки */
.user-menu-btn::after {
    content: '▼';
    font-size: 10px;
    color: #7f8c8d;
    transition: transform 0.3s ease;
}

.user-menu-btn:hover::after {
    transform: rotate(180deg);
    color: #4a7c59;
}

/* Дополнительные стили для лучшего UX */
.nav-user {
    position: relative;
    z-index: 1001;
}

/* Убедимся, что меню не перекрывается другими элементами */
header {
    position: relative;
    z-index: 1000;
}

/* Медиа-запросы для мобильных устройств */
@media (max-width: 768px) {
    .user-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        border-radius: 12px 12px 0 0;
        min-width: auto;
    }
    
    .user-menu-btn span {
        display: none;
    }
    
    .user-menu-btn::after {
        display: none;
    }
}
/* Search Results Styles */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    margin-top: 5px;
    display: none;
}

.search-results-content {
    padding: 10px;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.search-results-header span {
    font-weight: bold;
    color: #4a7c59;
}

.btn-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
}

.btn-close:hover {
    color: #333;
}

.search-results-list {
    max-height: 200px;
    overflow-y: auto;
}

.search-result-item {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 4px;
    transition: background 0.3s ease;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item:last-child {
    margin-bottom: 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #000;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #eee;
}

/* Form Styles in Modal */
.modal .form-group {
    margin-bottom: 20px;
}

.modal .form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.modal .form-control:focus {
    outline: none;
    border-color: #4a7c59;
}

.modal textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Blog Posts Styles */
.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 20px;
}

.post-title {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #2c3e50;
    line-height: 1.4;
}

.post-excerpt {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #95a5a6;
    border-top: 1px solid #ecf0f1;
    padding-top: 15px;
}

.post-meta i {
    margin-right: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .blog-posts {
        grid-template-columns: 1fr;
    }
    
    .search-results {
        position: fixed;
        top: 50%;
        left: 5%;
        right: 5%;
        transform: translateY(-50%);
    }
}
/* Стили для управления пользователями */
.users-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.users-info p {
    margin: 5px 0;
    color: #2c3e50;
}

.admin-user-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.admin-user-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.admin-user-name {
    margin: 0;
    color: #2c3e50;
    flex: 1;
    margin-right: 10px;
}

.admin-user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-role {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.user-role.admin {
    background: #4a7c59;
    color: white;
}

.user-role.user {
    background: #3498db;
    color: white;
}

.admin-user-info p {
    margin: 5px 0;
    color: #7f8c8d;
}

.no-users {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 40px;
}
/* Стили для расширенного tooltip */
.family-tooltip {
    max-width: 350px;
    min-width: 280px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.tooltip-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 12px;
}

.tooltip-photo {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    border: 3px solid #8e6e53;
    flex-shrink: 0;
}

.tooltip-photo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    background: linear-gradient(135deg, #8e6e53, #a88c74);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    border: 3px solid #8e6e53;
    flex-shrink: 0;
}

.tooltip-info {
    flex: 1;
    min-width: 0;
}

.tooltip-name {
    font-size: 18px;
    color: #2c3e50;
    margin: 0 0 8px 0;
    line-height: 1.2;
    font-weight: 600;
}

.tooltip-dates {
    font-size: 14px;
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 5px;
}

.tooltip-description {
    font-size: 14px;
    line-height: 1.5;
    color: #34495e;
    margin: 12px 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #8e6e53;
}

.tooltip-relation {
    font-size: 13px;
    color: #8e6e53;
    text-align: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 2px dashed #e1e8ed;
    font-weight: 500;
}

/* Стили для самого tooltip */
.echarts-tooltip {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid #e1e8ed !important;
    border-radius: 12px !important;
    padding: 16px !important;
    background: white !important;
    backdrop-filter: blur(10px);
}