.wp-dns-container {
    max-width: 1100px;
    margin: 40px auto;
    font-family: system-ui, sans-serif;
}

.wp-dns-header {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
    margin-bottom: 20px;
}

.wp-dns-controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.wp-dns-controls input {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.wp-dns-controls button {
    padding: 10px 14px;
    border: none;
    background: #4CAF50;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
}

.wp-dns-tree ul {
    list-style: none;
    padding-left: 0;
}

.wp-dns-item {
    background: #fff;
    margin-bottom: 6px;
    border-radius: 10px;
    overflow: hidden;
}

.wp-dns-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 10px;
}

.wp-dns-toggle {
    cursor: pointer;
    font-size: 14px;
}

.wp-dns-spacer {
    width: 14px;
}

.wp-dns-row a {
    flex: 1;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.wp-dns-count {
    background: #e6f4ff;
    color: #074F87;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
}

.wp-dns-level {
    display: none;
    padding-left: 20px;
}

/* El nivel raíz debe verse siempre; los niveles internos se colapsan/expanden */
.wp-dns-level-0 {
    display: block;
    padding-left: 0;
}

.wp-dns-item.open > .wp-dns-level {
    display: block;
}

.wp-dns-item.open > .wp-dns-row .wp-dns-toggle {
    transform: rotate(90deg);
}
