* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #fff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.breadcrumb-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.breadcrumb-separator {
    opacity: 0.5;
}

.content-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.tree-panel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 25px;
    max-height: 700px;
    overflow-y: auto;
}

.tree-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #fbbf24;
}

.tree-node {
    margin-left: 20px;
    margin-top: 10px;
}

.tree-node.level-0 {
    margin-left: 0;
}

.node-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.node-label:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(5px);
}

.node-label.active {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    box-shadow: 0 5px 15px rgba(74, 222, 128, 0.4);
}

.node-icon {
    font-size: 1.2em;
}

.detail-panel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    animation: fadeIn 0.5s ease;
}

.detail-header {
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 10px;
}

.detail-level {
    font-size: 0.9em;
    opacity: 0.7;
    margin-bottom: 30px;
}

.detail-description {
    font-size: 1.15em;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.95;
}

.children-section {
    margin-top: 30px;
}

.section-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #fbbf24;
}

.children-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.child-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.child-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.child-card h4 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #4ade80;
}

.action-bar {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.nav-btn {
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    color: white;
    text-decoration: none;
    font-size: 1em;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#loading {
    text-align: center;
    padding: 100px 20px;
    font-size: 1.5em;
}

#loading.error {
    color: #f87171;
}

#content {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 968px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}
