body {
    font-family: Calibri;
    line-height: 1.6;
    margin: 20px;
    font-size: 14px;
    background-color: #f5f7f9;
    color: #333;
}

h1 {
    font-family: Calibri;
    font-size: 24px;
    font-weight: bold;
    color: rgb(35, 44, 119);
    margin-bottom: 20px;
    text-align: center;
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 20px auto;
}

#tree-container {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.tree {
    list-style-type: none;
    padding-left: 0;
}

.tree ul {
    list-style-type: none;
    padding-left: 25px;
    border-left: 1px solid #e0e0e0;
    margin: 5px 0;
}

.tree li {
    position: relative;
    margin: 8px 0;
}

.tree .node {
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    background-color: #f9f9f9;
    transition: all 0.2s ease;
}

.tree .node:hover {
    background-color: #f0f0f0;
}

.tree .node::before {
    content: "▶";
    font-size: 10px;
    margin-right: 8px;
    color: #666;
}

.tree .node.expanded::before {
    content: "▼";
}

.tree .level1 {
    font-family: Calibri;
    font-size: 20px;
    font-weight: bold;
    color: rgb(35, 44, 119);
    background-color: #e6f2ff;
}

.tree .level2 {
    font-family: Calibri;
    font-size: 18px;
    font-weight: bold;
    color: rgb(35, 44, 119);
}

.tree .level3 {
    font-family: Calibri;
    font-size: 18px;
    font-weight: bold;
    color: rgb(35, 44, 119);
    background-color: #f3e5f5;
}

.tree .level4 {
    font-family: Calibri;
    font-size: 17px;
    color: #333;
    background-color: #fff;
    border: 1px solid #eee;
}

.tree .level5 {
    font-family: Calibri;
    font-size: 16px;
    color: #666;
    background-color: #fafafa;
    border: 1px solid #f0f0f0;
    padding: 5px 8px;
    margin: 2px 0;
    border-radius: 4px;
}

.tree .values-list {
    list-style-type: none;
    padding-left: 15px;
    margin: 5px 0;
}

.tree .values-list li {
    margin: 3px 0;
}

.tree .count {
    font-family: Calibri;
    font-weight: normal;
    color: rgb(35, 44, 119);
    font-size: 0.9em;
    margin-left: 10px;
}

.values-form {
    margin: 8px 0 8px 20px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #fafafa;
}

.values-form .form-title {
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
    font-size: 16px;
}

.values-list-minimal {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.values-list-minimal li {
    padding: 4px 6px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
}

.values-list-minimal li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    body {
        margin: 10px;
        font-size: 12px;
    }
    
    h1 {
        font-size: 18px;
    }
    
    .tree ul {
        padding-left: 15px;
    }
    
    .tree .node {
        padding: 6px 8px;
    }
    
    .tree .level1 {
        font-size: 14px;
    }
    
    .tree .level2,
    .tree .level3,
    .tree .level4,
    .tree .level5 {
        font-size: 12px;
    }
}

.search-container {
    max-width: 800px;
    margin: 0 auto 20px auto;
    position: relative;
    display: flex;
    gap: 10px;
    align-items: center;
}

#search-input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-family: Calibri;
    font-size: 18px;
}

#search-button {
    padding: 10px 20px;
    background-color: rgb(35, 44, 119);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: Calibri;
    font-size: 20px;
    transition: background-color 0.2s ease;
}

#search-button:hover {
    background-color: rgb(25, 34, 99);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-top: 5px;
    padding: 10px;
    display: none;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-highlight {
    background-color: rgb(0, 255, 213);
    color: black;
    padding: 2px 0;
}

.search-result-item {
    padding: 8px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.search-result-item:hover {
    background-color: #f5f5f5;
}

.search-result-item:last-child {
    border-bottom: none;
}

.no-results {
    color: #999;
    font-style: italic;
}

@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    #search-button {
        width: 100%;
    }
}